зеркало из https://github.com/mozilla/pjs.git
more changes to unix tiling (not turned on yet)
This commit is contained in:
Родитель
26a3f38434
Коммит
4762f5600c
|
@ -1024,10 +1024,9 @@ NS_IMETHODIMP nsImageGTK::DrawTile(nsIRenderingContext &aContext,
|
||||||
mWidth = aSrcRect.width;
|
mWidth = aSrcRect.width;
|
||||||
mHeight = aSrcRect.height;
|
mHeight = aSrcRect.height;
|
||||||
|
|
||||||
#ifdef DEBUG_FOO
|
printf("nsImageGTK::DrawTile((src: %d, %d), (tile: %d,%d, %d, %d) %p\n", mWidth, mHeight,
|
||||||
printf("nsImageGTK::DrawTile((src: %d, %d), (tile: %d, %d) %p\n", mWidth, mHeight,
|
aTileRect.x, aTileRect.y,
|
||||||
aTileRect.width, aTileRect.height, this);
|
aTileRect.width, aTileRect.height, this);
|
||||||
#endif
|
|
||||||
|
|
||||||
nsDrawingSurfaceGTK *drawing = (nsDrawingSurfaceGTK*)aSurface;
|
nsDrawingSurfaceGTK *drawing = (nsDrawingSurfaceGTK*)aSurface;
|
||||||
|
|
||||||
|
@ -1063,11 +1062,10 @@ NS_IMETHODIMP nsImageGTK::DrawTile(nsIRenderingContext &aContext,
|
||||||
XChangeGC(GDK_DISPLAY(), GDK_GC_XGC(copyGC), xvalues_mask, &xvalues);
|
XChangeGC(GDK_DISPLAY(), GDK_GC_XGC(copyGC), xvalues_mask, &xvalues);
|
||||||
|
|
||||||
// draw onscreen
|
// draw onscreen
|
||||||
#ifdef DEBUG_FOO
|
|
||||||
printf("gdk_draw_rectangle(..., %d, %d, %d, %d)\n",
|
printf("gdk_draw_rectangle(..., %d, %d, %d, %d)\n",
|
||||||
aTileRect.x, aTileRect.y,
|
aTileRect.x, aTileRect.y,
|
||||||
aTileRect.width, aTileRect.height);
|
aTileRect.width, aTileRect.height);
|
||||||
#endif
|
|
||||||
gdk_draw_rectangle(drawing->GetDrawable(), copyGC, PR_TRUE,
|
gdk_draw_rectangle(drawing->GetDrawable(), copyGC, PR_TRUE,
|
||||||
0, 0,
|
0, 0,
|
||||||
aTileRect.width, aTileRect.height);
|
aTileRect.width, aTileRect.height);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче