Add a debug printf.

This commit is contained in:
ramiro%netscape.com 1999-07-06 23:32:20 +00:00
parent 58aa59e827
commit 6e0b142f15

View File

@ -211,8 +211,22 @@ nsresult nsRenderingContextXlib::CommonInit(void)
unsigned int width, height, border, depth;
Window root_win;
XGetGeometry(mDisplay, mRenderingSurface->GetDrawable(), &root_win,
&x, &y, &width, &height, &border, &depth);
Drawable drawable = mRenderingSurface->GetDrawable();
printf("XGetGeometry(display=%p,drawable=%p)\n",
mDisplay,
drawable);
XGetGeometry(mDisplay,
drawable,
&root_win,
&x,
&y,
&width,
&height,
&border,
&depth);
mClipRegion = new nsRegionXlib();
mClipRegion->Init();
mClipRegion->SetTo(0, 0, width, height);