diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2013-11-11 15:13:16 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2013-11-11 15:13:16 +0000 |
commit | 6ba14eb88c249f39bf0033f07c08275ef633505e (patch) | |
tree | 9f02900048697c2cce4a90c40b8c760577d34d22 | |
parent | 3db018e7393bf3fef34af94b5902609dcf59c0f1 (diff) | |
parent | f1e68c2c6a18c251be02cc0ecbabb265c7610b55 (diff) |
Merge branch 'cygwin-patches-for-1.14' into cygwin-release-1.14xserver-cygwin-1.14.4-1
-rw-r--r-- | hw/xwin/winshadddnl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xwin/winshadddnl.c b/hw/xwin/winshadddnl.c index 01097f295..9fc3a15ea 100644 --- a/hw/xwin/winshadddnl.c +++ b/hw/xwin/winshadddnl.c @@ -986,6 +986,10 @@ winRedrawScreenShadowDDNL(ScreenPtr pScreen) RECT rcSrc, rcDest; POINT ptOrigin; + /* Return immediately if we didn't get needed surfaces */ + if (!pScreenPriv->pddsPrimary4 || !pScreenPriv->pddsShadow4) + return; + /* Get the origin of the window in the screen coords */ ptOrigin.x = pScreenInfo->dwXOffset; ptOrigin.y = pScreenInfo->dwYOffset; |