diff options
Diffstat (limited to 'src/TZR.c')
-rw-r--r-- | src/TZR.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -300,8 +300,9 @@ _TZR_DrawImage(const TZR_DrawImageArgs *args) if (simg_height + args->iy > img->height) simg_height = img->height - args->iy; - const int flip = (SDL_FLIP_HORIZONTAL * (scale_x < 0.0f)) | - (SDL_FLIP_VERTICAL * (scale_y < 0.0f)); + int flip = 0; + flip |= SDL_FLIP_HORIZONTAL * ((scale_x < 0.0f) ^ args->flip_x); + flip |= SDL_FLIP_VERTICAL * ((scale_y < 0.0f) ^ args->flip_y); const SDL_Rect src = { args->ix, args->iy, @@ -825,4 +826,4 @@ TZR_ShouldQuit(void) return ___tzr_should_quit; } -/* commit hash: e96c359a840974adea4d3d1d3445377f159ecdf0 */ +/* commit hash: d0cfe92ee80536be34bfaf2ce99dedcca87088d7 */ |