1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-28 23:48:30 +02:00

Fix screen shake during flip mode not flipping the screen

This fixes a regression introduced by #923 where flip mode no longer flips the screen while the screen is shaking.
This commit is contained in:
AllyTally 2023-02-14 19:24:37 -04:00 committed by Misa Elizabeth Kai
parent 73a80a9b4f
commit de43005676

View File

@ -3200,7 +3200,10 @@ void Graphics::screenshake(void)
}
set_render_target(NULL);
copy_texture(tempTexture, NULL, NULL);
set_blendmode(SDL_BLENDMODE_NONE);
clear();
copy_texture(tempTexture, NULL, NULL, 0, NULL, flipmode ? SDL_FLIP_VERTICAL : SDL_FLIP_NONE);
}
void Graphics::updatescreenshake(void)