b=340517, classic windows native themes broken; r=stuart

This commit is contained in:
vladimir%pobox.com 2006-06-06 19:01:58 +00:00
Родитель c9a711e596
Коммит 954d75ac83
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -1971,11 +1971,6 @@ nsresult nsNativeThemeWin::ClassicDrawWidgetBackground(nsIRenderingContext* aCon
/* Need to force the clip to be set */
ctx->UpdateSurfaceClip();
/* Set the device offsets as appropriate */
POINT origViewportOrigin;
GetViewportOrgEx(hdc, &origViewportOrigin);
SetViewportOrgEx(hdc, origViewportOrigin.x - (int) xoff, origViewportOrigin.y - (int) yoff, NULL);
/* Covert the current transform to a world transform */
gfxMatrix m = ctx->CurrentMatrix();
XFORM xform;
@ -1989,6 +1984,11 @@ nsresult nsNativeThemeWin::ClassicDrawWidgetBackground(nsIRenderingContext* aCon
xform.eDy = (FLOAT) dm[5];
SetWorldTransform (hdc, &xform);
/* Set the device offsets as appropriate */
POINT origViewportOrigin;
GetViewportOrgEx(hdc, &origViewportOrigin);
SetViewportOrgEx(hdc, origViewportOrigin.x + (int) xoff, origViewportOrigin.y + (int) yoff, NULL);
#else /* non-MOZ_CAIRO_GFX */
nsTransform2D* transformMatrix;