Commit b44ecc0f authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

nxagent: nxagent(Default)WindowIsVisible() are Booleans

parent d78837ec
...@@ -2309,7 +2309,7 @@ void nxagentCorruptedRegionOnWindow(void *p0, XID x, void *p2) ...@@ -2309,7 +2309,7 @@ void nxagentCorruptedRegionOnWindow(void *p0, XID x, void *p2)
* The window is not visible. * The window is not visible.
*/ */
if (nxagentWindowIsVisible(pWin) == 0) if (!nxagentWindowIsVisible(pWin))
{ {
return; return;
} }
......
...@@ -699,8 +699,8 @@ RegionPtr nxagentCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, ...@@ -699,8 +699,8 @@ RegionPtr nxagentCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
*/ */
if (!nxagentOption(IgnoreVisibility) && pDstDrawable -> type == DRAWABLE_WINDOW && if (!nxagentOption(IgnoreVisibility) && pDstDrawable -> type == DRAWABLE_WINDOW &&
(nxagentWindowIsVisible((WindowPtr) pDstDrawable) == 0 || (!nxagentWindowIsVisible((WindowPtr) pDstDrawable) ||
(nxagentDefaultWindowIsVisible() == 0 && nxagentCompositeEnable == 0))) (!nxagentDefaultWindowIsVisible() && nxagentCompositeEnable == 0)))
{ {
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentCopyArea: Prevented operation on fully obscured window at [%p].\n", fprintf(stderr, "nxagentCopyArea: Prevented operation on fully obscured window at [%p].\n",
......
...@@ -525,8 +525,8 @@ void nxagentPutImage(DrawablePtr pDrawable, GCPtr pGC, int depth, ...@@ -525,8 +525,8 @@ void nxagentPutImage(DrawablePtr pDrawable, GCPtr pGC, int depth,
*/ */
if (!nxagentOption(IgnoreVisibility) && pDrawable -> type == DRAWABLE_WINDOW && if (!nxagentOption(IgnoreVisibility) && pDrawable -> type == DRAWABLE_WINDOW &&
(nxagentWindowIsVisible((WindowPtr) pDrawable) == 0 || (!nxagentWindowIsVisible((WindowPtr) pDrawable) ||
(nxagentDefaultWindowIsVisible() == 0 && nxagentCompositeEnable == 0))) (!nxagentDefaultWindowIsVisible() && nxagentCompositeEnable == 0)))
{ {
#ifdef TEST #ifdef TEST
......
...@@ -173,8 +173,8 @@ FIXME: Changed macro: NXAGENT_SHOULD_DEFER_COMPOSITE ...@@ -173,8 +173,8 @@ FIXME: Changed macro: NXAGENT_SHOULD_DEFER_COMPOSITE
*/ */
#define NXAGENT_SHOULD_SYNCHRONIZE_WINDOW(pDrawable) \ #define NXAGENT_SHOULD_SYNCHRONIZE_WINDOW(pDrawable) \
(nxagentWindowIsVisible((WindowPtr) pDrawable) == 1 && \ (nxagentWindowIsVisible((WindowPtr) pDrawable) && \
(nxagentDefaultWindowIsVisible() == 1 || nxagentCompositeEnable == 1)) (nxagentDefaultWindowIsVisible() || nxagentCompositeEnable == 1))
#define MINIMUM_PIXMAP_USAGE_COUNTER 2 #define MINIMUM_PIXMAP_USAGE_COUNTER 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment