diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-04-16 18:13:50 +0100 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@nokia.com> | 2010-04-23 15:59:49 +0300 |
commit | a7d398e545a4be5491248d5ccb303aa03ee1594f (patch) | |
tree | affd1e09c3e22c57195e1e1923a546113a2a83f2 /hw/xwin/winglobals.c | |
parent | d8454ae488cfc073cd6010c9a08d53855a0c2612 (diff) |
Xwin: make screens structures run-time adjustable
Change g_ScreenInfo, an array of winScreenInfo elements, from a
static array of MAXSCREENS elements, to a dynamically allocated one
Fix up the validation that -screen option screen numbers are
contiguous from zero (which possibly didn't work correctly before
anyhow)
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Jamey Sharp<jamey@minilop.net>
Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Diffstat (limited to 'hw/xwin/winglobals.c')
-rw-r--r-- | hw/xwin/winglobals.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwin/winglobals.c b/hw/xwin/winglobals.c index da7815560..d74011cc7 100644 --- a/hw/xwin/winglobals.c +++ b/hw/xwin/winglobals.c @@ -41,7 +41,7 @@ */ int g_iNumScreens = 0; -winScreenInfo g_ScreenInfo[MAXSCREENS]; +winScreenInfo * g_ScreenInfo = 0; #ifdef HAS_DEVWINDOWS int g_fdMessageQueue = WIN_FD_INVALID; #endif |