add a few comments in here on how a few things should be done.

This commit is contained in:
pavlov%pavlov.net 1999-03-07 00:40:08 +00:00
Родитель e770f4ca72
Коммит d57e32a249
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -116,6 +116,14 @@ NS_IMETHODIMP nsDrawingSurfaceGTK :: Lock(PRInt32 aX, PRInt32 aY,
mLockHeight = aHeight;
mLockFlags = aFlags;
/*
i see. it might be that this does something that just isn't
possible directly with x11. you probably have to copy from the
gdkpixmap to a local gdkimage in lock(), do whatever is done to
the bits, and copy back in unlock(). if the display is local,
and shared pixmaps are supported, you don't need to do that.
*/
mImage = ::gdk_image_get(mPixmap, aX, aY, mLockWidth, mLockHeight);
// aBits = &mImage->mem;