]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Removed forgotten, useless and obsolete "The selected screen mode can't be displayed...
authorToni Wilen <twilen@winuae.net>
Tue, 15 May 2018 17:21:37 +0000 (20:21 +0300)
committerToni Wilen <twilen@winuae.net>
Tue, 15 May 2018 17:21:37 +0000 (20:21 +0300)
od-win32/win32gfx.cpp

index 84f4feafbd03d07be2bd08e1e7ae55c182db0251..67d15df28a43ddd59103bc44dbaf19f412fd6fe3 100644 (file)
@@ -3885,8 +3885,6 @@ static int oldtex_w, oldtex_h, oldtex_rtg;
 
 static BOOL doInit(struct AmigaMonitor *mon)
 {
-       int fs_warning = -1;
-       TCHAR tmpstr[300];
        int tmp_depth;
        int ret = 0;
 
@@ -3920,13 +3918,14 @@ retry:
                if (!(mon->currentmode.flags & (DM_D3D)) && DirectDraw_GetCurrentDepth () == mon->currentmode.current_depth) {
                        updatemodes(mon);
                }
-
+#if 0
+               TCHAR tmpstr[300];
+               int fs_warning = -1;
                if (!rp_isactive () && (mon->currentmode.current_width > GetSystemMetrics(SM_CXVIRTUALSCREEN) ||
                        mon->currentmode.current_height > GetSystemMetrics(SM_CYVIRTUALSCREEN))) {
                                if (!console_logging)
                                        fs_warning = IDS_UNSUPPORTEDSCREENMODE_3;
                }
-
                if (fs_warning >= 0 && isfullscreen () <= 0) {
                        TCHAR szMessage[MAX_DPATH], szMessage2[MAX_DPATH];
                        WIN32GUI_LoadUIString(IDS_UNSUPPORTEDSCREENMODE, szMessage, MAX_DPATH);
@@ -3947,6 +3946,7 @@ retry:
                        ret = -2;
                        goto oops;
                }
+#endif
                if (!create_windows(mon))
                        goto oops;
 #ifdef PICASSO96