This commit is contained in:
pavlov%pavlov.net 1999-03-07 00:58:11 +00:00
Родитель 263b825378
Коммит 5c7b826ee3
2 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -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;
}

Просмотреть файл

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