diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2010-03-19 17:23:12 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2010-03-21 21:56:39 -0700 |
commit | 9c9c3a85b094a3c7b2763a572715d710325091aa (patch) | |
tree | 6d52d7740c82ad1f093a1fbcfd9ea93abbe12e2a /hw/xquartz | |
parent | bb75d0df8b5238bfe8b011bb5737fae2a3584290 (diff) |
XQuartz: Minor cleanup
Move RandRInit to where it will need to be (not yet implemented)
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'hw/xquartz')
-rw-r--r-- | hw/xquartz/quartz.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hw/xquartz/quartz.c b/hw/xquartz/quartz.c index c4142a801..3c0420580 100644 --- a/hw/xquartz/quartz.c +++ b/hw/xquartz/quartz.c @@ -166,6 +166,11 @@ void QuartzInitOutput( FatalError("Could not register block and wakeup handlers."); } +#if defined(RANDR) && !defined(FAKE_RANDR) + if(!QuartzRandRInit(pScreen)) + FatalError("Failed to init RandR extension.\n"); +#endif + // Do display mode specific initialization quartzProcs->DisplayInit(); } @@ -259,16 +264,11 @@ void QuartzUpdateScreens(void) { pScreen->width = width; pScreen->height = height; -#ifndef FAKE_RANDR - if(!QuartzRandRInit(pScreen)) - FatalError("Failed to init RandR extension.\n"); -#endif - DarwinAdjustScreenOrigins(&screenInfo); quartzProcs->UpdateScreen(pScreen); - sx = dixScreenOrigins[pScreen->myNum].x + darwinMainScreenX; - sy = dixScreenOrigins[pScreen->myNum].y + darwinMainScreenY; + sx = x + darwinMainScreenX; + sy = y + darwinMainScreenY; /* Adjust the root window. */ pRoot = WindowTable[pScreen->myNum]; |