Feature #768 ยป 0019-sdl2-3-Make-popup-image-to-use-natural-size.patch
client/gui-sdl2/dialogs.c | ||
---|---|---|
/**********************************************************************//**
|
||
Popup image window
|
||
**************************************************************************/
|
||
void popup_image(const char *tag, int width, int height)
|
||
void popup_image(const char *tag, int width_discard, int height_discard)
|
||
{
|
||
if (advanced_image_popup == NULL) {
|
||
struct sprite *spr = load_popup_sprite(tag);
|
||
... | ... | |
SDL_Surface *surf = copy_surface(GET_SURF(spr));
|
||
SDL_Rect dst;
|
||
SDL_Rect area;
|
||
int width, height;
|
||
get_sprite_dimensions(spr, &width, &height);
|
||
advanced_image_popup = fc_calloc(1, sizeof(struct advanced_dialog));
|
||
win->action = image_popup_window_callback;
|
client/gui-sdl3/dialogs.c | ||
---|---|---|
/**********************************************************************//**
|
||
Popup image window
|
||
**************************************************************************/
|
||
void popup_image(const char *tag, int width, int height)
|
||
void popup_image(const char *tag, int width_discard, int height_discard)
|
||
{
|
||
if (advanced_image_popup == NULL) {
|
||
struct sprite *spr = load_popup_sprite(tag);
|
||
... | ... | |
SDL_Surface *surf = copy_surface(GET_SURF(spr));
|
||
SDL_Rect dst;
|
||
SDL_Rect area;
|
||
int width, height;
|
||
get_sprite_dimensions(spr, &width, &height);
|
||
advanced_image_popup = fc_calloc(1, sizeof(struct advanced_dialog));
|
||
win->action = image_popup_window_callback;
|