Avoid drawing to pixmaps without back-end resources.

This commit is contained in:
David Reveman 2008-07-17 22:57:11 -04:00
parent 1c93025aa4
commit 07c6aca7d7

View file

@ -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