diff --git a/exa/exa_driver.c b/exa/exa_driver.c index 8799a798e..45acf152c 100644 --- a/exa/exa_driver.c +++ b/exa/exa_driver.c @@ -87,7 +87,7 @@ exaCreatePixmap_driver(ScreenPtr pScreen, int w, int h, int depth, } else { paddedWidth = ((w * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); - if (paddedWidth / 4 > 32767 || h > 32767) + if (paddedWidth / 4 > 32767) return NullPixmap; exaSetFbPitch(pExaScr, pExaPixmap, w, h, bpp); diff --git a/exa/exa_mixed.c b/exa/exa_mixed.c index 1e67ec23a..d926f8033 100644 --- a/exa/exa_mixed.c +++ b/exa/exa_mixed.c @@ -72,7 +72,7 @@ exaCreatePixmap_mixed(ScreenPtr pScreen, int w, int h, int depth, bpp = pPixmap->drawable.bitsPerPixel; paddedWidth = ((w * bpp + FB_MASK) >> FB_SHIFT) * sizeof(FbBits); - if (paddedWidth / 4 > 32767 || h > 32767) + if (paddedWidth / 4 > 32767) return NullPixmap; /* We will allocate the system pixmap later if needed. */ @@ -326,5 +326,3 @@ exaSetSharedPixmapBacking_mixed(PixmapPtr pPixmap, void *handle) return ret; } - -