more work

This commit is contained in:
pavlov%pavlov.net 1999-03-07 00:58:11 +00:00
parent d57e32a249
commit 82aab682c1
2 changed files with 15 additions and 0 deletions

View File

@ -112,6 +112,8 @@ NS_IMETHODIMP nsDrawingSurfaceGTK :: Lock(PRInt32 aX, PRInt32 aY,
}
mLocked = PR_TRUE;
mLockX = aX;
mLockY = aY;
mLockWidth = aWidth;
mLockHeight = aHeight;
mLockFlags = aFlags;
@ -138,10 +140,21 @@ NS_IMETHODIMP nsDrawingSurfaceGTK :: Unlock(void)
NS_ASSERTION(0, "attempting to unlock an DS that isn't locked");
return NS_ERROR_FAILURE;
}
/*
//if it is writeable, we are going to want to redraw the pixmap from the image.
gdk_draw_image(GdkDrawable *drawable,
mGC,
mImage,
0, 0,
mLockX, mLockY,
mLockWidth, mLockHeight);
*/
::gdk_image_destroy(mImage);
mImage = nsnull;
mLocked = PR_FALSE;
return NS_OK;
}

View File

@ -66,6 +66,8 @@ private:
/* for locks */
GdkImage *mImage;
PRint32 mLockX;
PRint32 mLockY;
PRUint32 mLockWidth;
PRUint32 mLockHeight;
PRUint32 mLockFlags;