aboutsummaryrefslogtreecommitdiff
path: root/x11.cpp
diff options
context:
space:
mode:
authorJames Brown2002-03-06 12:24:56 +0000
committerJames Brown2002-03-06 12:24:56 +0000
commit178540c989efad3423acec5b143f63eb3389368d (patch)
treea7a8e3688901ebe0a8ae72ef5f229317e0db9418 /x11.cpp
parent4a98b9b9e96712e7dccf6c4c04533f3bd22430d8 (diff)
downloadscummvm-rg350-178540c989efad3423acec5b143f63eb3389368d.tar.gz
scummvm-rg350-178540c989efad3423acec5b143f63eb3389368d.tar.bz2
scummvm-rg350-178540c989efad3423acec5b143f63eb3389368d.zip
Applied cleanup and scaling patch by Rob.
svn-id: r3665
Diffstat (limited to 'x11.cpp')
-rw-r--r--x11.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/x11.cpp b/x11.cpp
index 08156157ee..6b498d00ce 100644
--- a/x11.cpp
+++ b/x11.cpp
@@ -68,6 +68,8 @@ static int old_mouse_x, old_mouse_y;
static int old_mouse_h, old_mouse_w;
static bool has_mouse, hide_mouse;
+static unsigned int scale;
+
#define MAX_NUMBER_OF_DIRTY_SQUARES 32
typedef struct {
int x, y, w, h;
@@ -188,7 +190,7 @@ void BoxTest(int num) {
}
/* Initialize the graphics sub-system */
-void initGraphics(Scumm *s, bool fullScreen) {
+void initGraphics(Scumm *s, bool fullScreen, unsigned int scaleFactor) {
char buf[512], *gameName;
static XShmSegmentInfo shminfo;
XWMHints *wm_hints;
@@ -196,6 +198,8 @@ void initGraphics(Scumm *s, bool fullScreen) {
XTextProperty window_name;
char *name = (char *) &buf;
+ scale = scaleFactor; // not implemented yet! ignored.
+
/* For the window title */
sprintf(buf, "ScummVM - %s", gameName = s->getGameName());
free(gameName);