From 07c6aca7d7175c517fd81bdeb7d5552e0065c57e Mon Sep 17 00:00:00 2001 From: David Reveman Date: Thu, 17 Jul 2008 22:57:11 -0400 Subject: [PATCH] Avoid drawing to pixmaps without back-end resources. --- hw/dmx/dmxgcops.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/dmx/dmxgcops.c b/hw/dmx/dmxgcops.c index 3324b4391..094101aed 100644 --- a/hw/dmx/dmxgcops.c +++ b/hw/dmx/dmxgcops.c @@ -68,10 +68,11 @@ do { \ #define DMX_GCOPS_OFFSCREEN(_pDraw) \ (!dmxScreens[(_pDraw)->pScreen->myNum].beDisplay || \ - ((_pDraw)->type == DRAWABLE_WINDOW && \ - (!DMX_GET_WINDOW_PRIV((WindowPtr)(_pDraw))->window || \ - (dmxOffScreenOpt && \ - DMX_GET_WINDOW_PRIV((WindowPtr)(_pDraw))->offscreen)))) + (((_pDraw)->type == DRAWABLE_WINDOW) ? \ + ((!DMX_GET_WINDOW_PRIV((WindowPtr)(_pDraw))->window || \ + (dmxOffScreenOpt && \ + DMX_GET_WINDOW_PRIV((WindowPtr)(_pDraw))->offscreen))) : \ + (!(DMX_GET_PIXMAP_PRIV((PixmapPtr)(_pDraw)))->pixmap))) /** Transfer \a pBits image to back-end server associated with \a * pDrawable's screen. If primitive subdivision optimization is