ref: 22622ae69a5707e233bbf8c4012d526a12521b2d
parent: faa96094b4ef9954741493fe0d180e7039d6ba4a
parent: 6764f17ab91bd53252ef57369d8fba97087ba3bb
author: Clownacy <[email protected]>
date: Fri Jan 17 05:37:21 EST 2020
Merge branch 'accurate' into portable
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -218,10 +218,24 @@
if (window == NULL)
return 0;
+ #ifdef FIX_BUGS
if (conf.display_mode == 1)
+ {
+ if (!StartDirectDraw(window, 0))
+ return 0;
+ }
+ else
+ {
+ if !(StartDirectDraw(window, 1))
+ return 0;
+ }
+ #else
+ // Doesn't handle StartDirectDraw failing
+ if (conf.display_mode == 1)
StartDirectDraw(window, 0);
else
StartDirectDraw(window, 1);
+ #endif
break;
@@ -237,7 +251,14 @@
if (window == NULL)
return 0;
+ #ifdef FIX_BUGS
+ if (!StartDirectDraw(window, 2))
+ return 0;
+ #else
+ // Doesn't handle StartDirectDraw failing
StartDirectDraw(window, 2);
+ #endif
+
bFullscreen = TRUE;
SDL_ShowCursor(SDL_DISABLE);