mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
This error checking was just simply wrong - OS/2 only
This commit is contained in:
parent
af66574cdb
commit
6985161a1c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user