Bug #1467 » 0017-sdl2-Make-getpixel-x-y-parameters-int.patch
| 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, | ||
- « Previous
- 1
- 2
- 3
- Next »