diff options
author | James Brown | 2002-03-06 12:24:56 +0000 |
---|---|---|
committer | James Brown | 2002-03-06 12:24:56 +0000 |
commit | 178540c989efad3423acec5b143f63eb3389368d (patch) | |
tree | a7a8e3688901ebe0a8ae72ef5f229317e0db9418 /x11.cpp | |
parent | 4a98b9b9e96712e7dccf6c4c04533f3bd22430d8 (diff) | |
download | scummvm-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.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |