xquartz: Remove support for Panther and earlier versions of macOS
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
0e272ac458
commit
74aef85bd8
|
@ -216,12 +216,10 @@ DRIUpdateSurface(DRIDrawablePrivPtr pDRIDrawablePriv, DrawablePtr pDraw)
|
||||||
if (pDRIDrawablePriv->sid == 0)
|
if (pDRIDrawablePriv->sid == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
|
|
||||||
wc.depth = (pDraw->bitsPerPixel == 32 ? XP_DEPTH_ARGB8888
|
wc.depth = (pDraw->bitsPerPixel == 32 ? XP_DEPTH_ARGB8888
|
||||||
: pDraw->bitsPerPixel == 16 ? XP_DEPTH_RGB555 : XP_DEPTH_NIL);
|
: pDraw->bitsPerPixel == 16 ? XP_DEPTH_RGB555 : XP_DEPTH_NIL);
|
||||||
if (wc.depth != XP_DEPTH_NIL)
|
if (wc.depth != XP_DEPTH_NIL)
|
||||||
flags |= XP_DEPTH;
|
flags |= XP_DEPTH;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (pDraw->type == DRAWABLE_WINDOW) {
|
if (pDraw->type == DRAWABLE_WINDOW) {
|
||||||
WindowPtr pWin = (WindowPtr)pDraw;
|
WindowPtr pWin = (WindowPtr)pDraw;
|
||||||
|
@ -382,17 +380,13 @@ DRICreateSurface(ScreenPtr pScreen, Drawable id,
|
||||||
|
|
||||||
if (NULL == pDRIDrawablePriv)
|
if (NULL == pDRIDrawablePriv)
|
||||||
return FALSE; /*error*/
|
return FALSE; /*error*/
|
||||||
}
|
} else if (pDrawable->type == DRAWABLE_PIXMAP) {
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
|
|
||||||
else if (pDrawable->type == DRAWABLE_PIXMAP) {
|
|
||||||
pDRIDrawablePriv = CreateSurfaceForPixmap(pScreen,
|
pDRIDrawablePriv = CreateSurfaceForPixmap(pScreen,
|
||||||
(PixmapPtr)pDrawable);
|
(PixmapPtr)pDrawable);
|
||||||
|
|
||||||
if (NULL == pDRIDrawablePriv)
|
if (NULL == pDRIDrawablePriv)
|
||||||
return FALSE; /*error*/
|
return FALSE; /*error*/
|
||||||
}
|
} else {
|
||||||
#endif
|
|
||||||
else {
|
|
||||||
/* We handle GLXPbuffers in a different way (via CGL). */
|
/* We handle GLXPbuffers in a different way (via CGL). */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue