Clear the modified flag after the image texture has been synchronized.

[GB.SDL2]
* BUG: Clear the modified flag after the image texture has been synchronized.
This commit is contained in:
Benoît Minisini 2022-12-29 01:06:18 +01:00
parent 250c292820
commit 9ed4595ec5

View file

@ -145,7 +145,9 @@ SDL_Texture *SDL_GetTextureFromImage(SDL_Image *image, CWINDOW *window, bool mod
SDL_Texture *IMAGE_get_texture(CIMAGE *_object, CWINDOW *window)
{
return SDL_GetTextureFromImage(IMAGE_get(THIS), window, THIS->img.modified);
SDL_Texture *texture = SDL_GetTextureFromImage(IMAGE_get(THIS), window, THIS->img.modified);
THIS->img.modified = FALSE;
return texture;
}
CIMAGE *IMAGE_create_from_window(CWINDOW *window, int x, int y, int w, int h)