فهرست منبع

Fixed wrong cursor position in full screen mode

AlexVinS 7 سال پیش
والد
کامیت
d1931c91d7
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 6 4
      client/CMT.cpp

+ 6 - 4
client/CMT.cpp

@@ -1155,10 +1155,12 @@ static bool recreateWindow(int w, int h, int bpp, bool fullscreen, int displayIn
 	{
 		SDL_RenderSetLogicalSize(mainRenderer, w, h);
 
-#ifndef VCMI_ANDROID
-		// on android this stretches the game to fit the screen, not preserving aspect and apparently this also breaks coordinates scaling in mouse events
-		SDL_RenderSetViewport(mainRenderer, nullptr);
-#endif
+//following line is bugged not only on android, do not re-enable without checking
+//#ifndef VCMI_ANDROID
+//		// on android this stretches the game to fit the screen, not preserving aspect and apparently this also breaks coordinates scaling in mouse events
+//		SDL_RenderSetViewport(mainRenderer, nullptr);
+//#endif
+
 	}