mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
Wrong casts being used
Caused outside contributor to be unable to build
This commit is contained in:
parent
3ade335863
commit
8bd119d141
@ -271,7 +271,7 @@ nsresult nsOffscreenSurface::Lock( PRInt32 aX, PRInt32 aY,
|
||||
mYPels = mInfoHeader->cy - aY - aHeight;
|
||||
mScans = aHeight;
|
||||
|
||||
rc = GpiQueryBitmapBits( mPS, mYPels, mScans, (char*) mBits,
|
||||
rc = GpiQueryBitmapBits( mPS, mYPels, mScans, (PBYTE) mBits,
|
||||
(PBITMAPINFO2) mInfoHeader);
|
||||
if( rc != mInfoHeader->cy) PMERROR( "GpiQueryBitmapBits");
|
||||
|
||||
@ -290,7 +290,7 @@ nsresult nsOffscreenSurface::Lock( PRInt32 aX, PRInt32 aY,
|
||||
|
||||
nsresult nsOffscreenSurface::Unlock()
|
||||
{
|
||||
long rc = GpiSetBitmapBits( mPS, mYPels, mScans, (char*) mBits,
|
||||
long rc = GpiSetBitmapBits( mPS, mYPels, mScans, (PBYTE) mBits,
|
||||
(PBITMAPINFO2) mInfoHeader);
|
||||
if( rc == GPI_ALTERROR) PMERROR( "GpiSetBitmapBits");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user