Project

General

Profile

Bug #1467 » 0017-sdl2-Make-getpixel-x-y-parameters-int.patch

S3_1 - Marko Lindqvist, 06/06/2025 04:22 AM

View differences:

client/gui-sdl2/graphics.c
Return the pixel value at (x, y)
NOTE: The surface must be locked before calling this!
**************************************************************************/
Uint32 getpixel(SDL_Surface *surf, Sint16 x, Sint16 y)
Uint32 getpixel(SDL_Surface *surf, int x, int y)
{
if (!surf) {
return 0x0;
client/gui-sdl2/graphics.h
int blit_entire_src(SDL_Surface *psrc,
SDL_Surface *pdest, Sint16 dest_x, Sint16 dest_y);
Uint32 getpixel(SDL_Surface *surf, Sint16 x, Sint16 y);
Uint32 getpixel(SDL_Surface *surf, int x, int y);
Uint32 get_first_pixel(SDL_Surface *surf);
void create_frame(SDL_Surface *dest, Sint16 left, Sint16 top,
(3-3/3)