1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-05 15:05:40 +02:00
Zsolt Sz. Sztupák e6f1ab6539 Fix SDL letterboxing on Android builds
On Android calling `SDL_RenderSetLogicalSize` with dimensions having a different aspect ratio than the screen will cause letterboxing with blinking garbage data in that areas (instead of having black bars). This is annoying and makes the game really hard to play.

This change will make sure that on Android `SDL_RenderSetLogicalSize` will always be called with dimensions where the aspect ratio is the same as the screen to make sure there is no letterboxing.

The only problem with this is that during drawing the adventure map nothing will clear out the areas that would have been letterboxes, so there is an added explicit clear screen command for `totalRedraw()`.

The changes are only applied to Android builds in order not to affect PC builds - but some changes, especially clearing the screen could be easily added to the PC builds as well
2020-01-06 18:46:56 +00:00
..
2018-07-25 01:36:48 +03:00
2018-07-25 01:36:48 +03:00
2018-07-25 01:36:48 +03:00
2018-07-25 01:36:48 +03:00
2018-08-26 19:09:56 +03:00
2018-07-25 01:36:48 +03:00
2018-07-25 01:36:48 +03:00
2018-07-25 01:36:48 +03:00