Wrong casts being used
Caused outside contributor to be unable to build git-svn-id: svn://10.0.0.236/trunk@82097 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a6f3529b8f
commit
356ea00e35
@ -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…
x
Reference in New Issue
Block a user