mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Fixed wrong cursor position in full screen mode
This commit is contained in:
parent
c4af306ceb
commit
d1931c91d7
@ -1155,10 +1155,12 @@ static bool recreateWindow(int w, int h, int bpp, bool fullscreen, int displayIn
|
|||||||
{
|
{
|
||||||
SDL_RenderSetLogicalSize(mainRenderer, w, h);
|
SDL_RenderSetLogicalSize(mainRenderer, w, h);
|
||||||
|
|
||||||
#ifndef VCMI_ANDROID
|
//following line is bugged not only on android, do not re-enable without checking
|
||||||
// on android this stretches the game to fit the screen, not preserving aspect and apparently this also breaks coordinates scaling in mouse events
|
//#ifndef VCMI_ANDROID
|
||||||
SDL_RenderSetViewport(mainRenderer, nullptr);
|
// // on android this stretches the game to fit the screen, not preserving aspect and apparently this also breaks coordinates scaling in mouse events
|
||||||
#endif
|
// SDL_RenderSetViewport(mainRenderer, nullptr);
|
||||||
|
//#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user