From becca364d843675d2e82f4f1e41291b93b7b87f1 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Fri, 1 Feb 2002 01:55:36 +0000 Subject: [PATCH] fix comp warnings --- panda/src/dxgsg/dxTextureContext.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/dxgsg/dxTextureContext.cxx b/panda/src/dxgsg/dxTextureContext.cxx index 6e845c148b..ac9b5dc148 100644 --- a/panda/src/dxgsg/dxTextureContext.cxx +++ b/panda/src/dxgsg/dxTextureContext.cxx @@ -731,7 +731,7 @@ HRESULT ConvertDDSurftoPixBuf(PixelBuffer *pixbuf,LPDIRECTDRAWSURFACE7 pDDSurf) //make sure there's enough space in the pixbuf, its size must match (especially xsize) // or scanlines will be too long - if(!((dwCopyWidth==pixbuf->get_xsize()) && (dwCopyHeight<=pixbuf->get_ysize()))) { + if(!((dwCopyWidth==pixbuf->get_xsize()) && (dwCopyHeight<=(DWORD)pixbuf->get_ysize()))) { pDDSurf->Unlock(NULL); assert(0); dxgsg_cat.error() << "ConvertDDSurftoPixBuf, PixBuf incorrect size to hold display surface!\n"; @@ -1695,7 +1695,7 @@ FillDDSurfTexturePixels(void) { // fetches, stores byte at a time. // inefficient, but works for all channel sizes - for(int c=0;c1) // handle 1x[X], [X]x1 cases