diff options
author | Brian <brian@yutani.localnet.net> | 2007-03-30 12:56:34 -0600 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-03-30 12:56:34 -0600 |
commit | d92da3d5f309392ac398c0975ef17bb04312d5e2 (patch) | |
tree | c8e8067a48c74c2549caf63afe96bddc6e98fcc9 /hw/dmx | |
parent | 44acb2517d9fb07790d9d799aa9cc727d1b7d35c (diff) |
more formatting fixes
Diffstat (limited to 'hw/dmx')
-rw-r--r-- | hw/dmx/dmxcursor.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hw/dmx/dmxcursor.c b/hw/dmx/dmxcursor.c index ef49652e2..09b50b8c7 100644 --- a/hw/dmx/dmxcursor.c +++ b/hw/dmx/dmxcursor.c @@ -130,14 +130,16 @@ static Bool dmxCursorOffScreen(ScreenPtr *ppScreen, int *x, int *y) int globalX; int globalY; - if (screenInfo.numScreens == 1) return FALSE; + if (screenInfo.numScreens == 1) + return FALSE; /* On current screen? */ dmxScreen = &dmxScreens[(*ppScreen)->myNum]; if (localX >= 0 && localX < dmxScreen->rootWidth && localY >= 0 - && localY < dmxScreen->rootHeight) return FALSE; + && localY < dmxScreen->rootHeight) + return FALSE; /* Convert to global coordinate space */ globalX = dmxScreen->rootXOrigin + localX; @@ -162,7 +164,8 @@ static Bool dmxCursorOffScreen(ScreenPtr *ppScreen, int *x, int *y) && globalX < dmxScreen->rootXOrigin + dmxScreen->rootWidth && globalY >= dmxScreen->rootYOrigin && globalY < dmxScreen->rootYOrigin + dmxScreen->rootHeight) { - if (dmxScreen->index == (*ppScreen)->myNum) return FALSE; + if (dmxScreen->index == (*ppScreen)->myNum) + return FALSE; *ppScreen = screenInfo.screens[dmxScreen->index]; *x = globalX - dmxScreen->rootXOrigin; *y = globalY - dmxScreen->rootYOrigin; |