summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
author_AG <gennariarmando@outlook.com>2019-07-02 13:59:19 +0200
committer_AG <gennariarmando@outlook.com>2019-07-02 14:36:40 +0200
commit6c693e3bbfe46cb445e4664eb91ef85c811a6240 (patch)
treed088600e9f1a18be005476d7a43a7232ccd1764f /src/skel
parentMerge pull request #86 from erorcun/erorcun (diff)
downloadre3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.gz
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.bz2
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.lz
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.xz
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.zst
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.zip
Diffstat (limited to 'src/skel')
-rw-r--r--src/skel/win/win.cpp12
-rw-r--r--src/skel/win/win.h4
2 files changed, 12 insertions, 4 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp
index 9638e53a..1b91af24 100644
--- a/src/skel/win/win.cpp
+++ b/src/skel/win/win.cpp
@@ -1355,10 +1355,14 @@ 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 != 640
- || vm.height != 480
- || vm.depth != 16
+ if ( defaultFullscreenRes && vm.width != Rect.right
+ || vm.height != Rect.bottom
+ || vm.depth != 32
|| !(vm.flags & rwVIDEOMODEEXCLUSIVE) )
++GcurSelVM;
else
@@ -1367,7 +1371,7 @@ psSelectDevice()
if ( !modeFound )
{
- MessageBox(nil, "Cannot find 640x480 video mode", "GTA3", MB_OK);
+ MessageBox(nil, gString, "GTA3", MB_OK);
return FALSE;
}
}
diff --git a/src/skel/win/win.h b/src/skel/win/win.h
index 371b9e44..13564a7f 100644
--- a/src/skel/win/win.h
+++ b/src/skel/win/win.h
@@ -79,6 +79,10 @@ void CenterVideo(void);
void CloseClip(void);
RwChar **_psGetVideoModeList();
+RwInt32 _psGetNumVideModes();
+
+void _psSelectScreenVM(RwInt32 videoMode);
+void HandleExit();
#ifdef __cplusplus
}