aboutsummaryrefslogtreecommitdiff
path: root/wince
diff options
context:
space:
mode:
authorNicolas Bacca2002-05-14 06:51:09 +0000
committerNicolas Bacca2002-05-14 06:51:09 +0000
commite270618741bef9e51084263f62118d8c8e84b54f (patch)
tree1cb8fcdaf42fd0d3e08377e0b8ebe7e02e7ec030 /wince
parented5de03c7e688a505d040b328e9260f7a11adb7c (diff)
downloadscummvm-rg350-e270618741bef9e51084263f62118d8c8e84b54f.tar.gz
scummvm-rg350-e270618741bef9e51084263f62118d8c8e84b54f.tar.bz2
scummvm-rg350-e270618741bef9e51084263f62118d8c8e84b54f.zip
(untested) support for 320x240 Zak screen resolution
svn-id: r4311
Diffstat (limited to 'wince')
-rw-r--r--wince/screen.cpp11
-rw-r--r--wince/screen.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/wince/screen.cpp b/wince/screen.cpp
index 100ea971e2..894ee0b768 100644
--- a/wince/screen.cpp
+++ b/wince/screen.cpp
@@ -127,6 +127,17 @@ void GraphicsOff(void)
active = 0;
}
+void SetScreenGeometry(int w, int h) {
+ // Complain (loudly) if w > 320 and h > 240 ...
+ if (w != 320 || h > 240) {
+ MessageBox(NULL, TEXT("Unsupported screen geometry !"), TEXT("Error"), MB_OK);
+ exit(1);
+ }
+ geom[0].lineLimit = w*h;
+ geom[1].lineLimit = w*h;
+ geom[2].lineLimit = w*h;
+}
+
int GraphicsOn(HWND hWndMain_param)
{
hWndMain = hWndMain_param;
diff --git a/wince/screen.h b/wince/screen.h
index b4fa5be8cf..23aed048a5 100644
--- a/wince/screen.h
+++ b/wince/screen.h
@@ -7,6 +7,7 @@
#define UBYTE unsigned char
#endif
+void SetScreenGeometry(int w, int h);
int GraphicsOn(HWND hWndMain);
void GraphicsOff();
void GraphicsSuspend();