From 7894c2212b12c6d0a2f14d7547168f1af1b1bdd2 Mon Sep 17 00:00:00 2001 From: Kevin Holbrook Date: Sat, 22 May 1999 18:46:51 +0000 Subject: [PATCH] Should compare to X11 constant "None" since a colormap is an X Resource ID and not a pointer. --- graphics/ddraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/ddraw.c b/graphics/ddraw.c index a226f11542a..627f8649cf8 100644 --- a/graphics/ddraw.c +++ b/graphics/ddraw.c @@ -2020,7 +2020,7 @@ static HRESULT WINAPI IDirectDrawPaletteImpl_GetEntries( This,x,start,count,palent); /* No palette created and not in depth-convertion mode -> BUG ! */ - if ((This->cm == NULL) && + if ((This->cm == None) && (This->ddraw->d.palette_convert == NULL)) { FIXME(ddraw,"app tried to read colormap for non-palettized mode\n");