This error checking was just simply wrong - OS/2 only

This commit is contained in:
mkaply%us.ibm.com 2005-03-08 15:42:02 +00:00
parent af66574cdb
commit 6985161a1c

View File

@ -325,9 +325,11 @@ nsresult nsOffscreenSurface::Lock( PRInt32 aX, PRInt32 aY,
(PBITMAPINFO2)mInfoHeader), GPI_ALTERROR);
#ifdef DEBUG
if( rc != mInfoHeader->cy) PMERROR( "GpiQueryBitmapBits");
printf( "Lock, requested %d x %d and got %d x %d\n",
aWidth, aHeight, (int) mInfoHeader->cx, aHeight);
if( rc != mScans) {
PMERROR( "GpiQueryBitmapBits");
printf( "Lock, requested %d x %d and got %d x %d\n",
aWidth, aHeight, (int) mInfoHeader->cx, aHeight);
}
#endif
// Okay. Now have current state of bitmap in mBits.