Project

General

Profile

Bug #1467 » 0091-sdl-Make-get_pixel-x-y-parameters-int.patch

main, S3_3 - 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 get_pixel(SDL_Surface *surf, Sint16 x, Sint16 y)
Uint32 get_pixel(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 get_pixel(SDL_Surface *surf, Sint16 x, Sint16 y);
Uint32 get_pixel(SDL_Surface *surf, int x, int y);
Uint32 get_first_pixel(SDL_Surface *surf);
void create_frame(SDL_Surface *dest, Sint16 left, Sint16 top,
client/gui-sdl3/graphics.c
Return the pixel value at (x, y)
NOTE: The surface must be locked before calling this!
**************************************************************************/
Uint32 get_pixel(SDL_Surface *surf, Sint16 x, Sint16 y)
Uint32 get_pixel(SDL_Surface *surf, int x, int y)
{
if (!surf) {
return 0x0;
client/gui-sdl3/graphics.h
int blit_entire_src(SDL_Surface *psrc,
SDL_Surface *pdest, Sint16 dest_x, Sint16 dest_y);
Uint32 get_pixel(SDL_Surface *surf, Sint16 x, Sint16 y);
Uint32 get_pixel(SDL_Surface *surf, int x, int y);
Uint32 get_first_pixel(SDL_Surface *surf);
void create_frame(SDL_Surface *dest, Sint16 left, Sint16 top,
(1-1/3)