summaryrefslogtreecommitdiffstats
path: root/src/skel/win/win.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-02 22:05:32 +0200
committerGitHub <noreply@github.com>2019-07-02 22:05:32 +0200
commita91ea239243236a2d16fb29f676c5639a6cc23e1 (patch)
tree477b9853bea245d9cbdaa8700e02ff980abe79d5 /src/skel/win/win.cpp
parentMerge pull request #88 from gennariarmando/master (diff)
parentRevert "Implemented frontend inputs." (diff)
downloadre3-a91ea239243236a2d16fb29f676c5639a6cc23e1.tar
re3-a91ea239243236a2d16fb29f676c5639a6cc23e1.tar.gz
re3-a91ea239243236a2d16fb29f676c5639a6cc23e1.tar.bz2
re3-a91ea239243236a2d16fb29f676c5639a6cc23e1.tar.lz
re3-a91ea239243236a2d16fb29f676c5639a6cc23e1.tar.xz
re3-a91ea239243236a2d16fb29f676c5639a6cc23e1.tar.zst
re3-a91ea239243236a2d16fb29f676c5639a6cc23e1.zip
Diffstat (limited to '')
-rw-r--r--src/skel/win/win.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp
index 1b91af24..9638e53a 100644
--- a/src/skel/win/win.cpp
+++ b/src/skel/win/win.cpp
@@ -1355,14 +1355,10 @@ psSelectDevice()
{
while ( !modeFound && GcurSelVM < RwEngineGetNumVideoModes() )
{
- RECT Rect;
- GetWindowRect(GetDesktopWindow(), &Rect);
- printf(gString, "Cannot find %dx%dx32 video mode", Rect.right, Rect.bottom);
-
RwEngineGetVideoModeInfo(&vm, GcurSelVM);
- if ( defaultFullscreenRes && vm.width != Rect.right
- || vm.height != Rect.bottom
- || vm.depth != 32
+ if ( defaultFullscreenRes && vm.width != 640
+ || vm.height != 480
+ || vm.depth != 16
|| !(vm.flags & rwVIDEOMODEEXCLUSIVE) )
++GcurSelVM;
else
@@ -1371,7 +1367,7 @@ psSelectDevice()
if ( !modeFound )
{
- MessageBox(nil, gString, "GTA3", MB_OK);
+ MessageBox(nil, "Cannot find 640x480 video mode", "GTA3", MB_OK);
return FALSE;
}
}