summaryrefslogtreecommitdiff
path: root/mi/miexpose.c
diff options
context:
space:
mode:
authorFredrik Höglund <fredrik@kde.org>2008-08-18 19:27:34 +0200
committerFredrik Höglund <fredrik@kde.org>2008-08-18 19:27:34 +0200
commit244a635fcdc9e0a7212d51b26d74f49d8e1b071f (patch)
tree4f4dec4be2b24a03dbf8a801e05a9c59bbd37dcf /mi/miexpose.c
parentfdf7c747a8e1bc59dfb31b7f90dd5eab2687315b (diff)
Fix the tile offset in miPaintWindow for ParentRelative windows.
Diffstat (limited to 'mi/miexpose.c')
-rw-r--r--mi/miexpose.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mi/miexpose.c b/mi/miexpose.c
index 7da132403..9fbcdd737 100644
--- a/mi/miexpose.c
+++ b/mi/miexpose.c
@@ -547,8 +547,8 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
draw_x_off = drawable->x;
draw_y_off = drawable->y;
- tile_x_off = 0;
- tile_y_off = 0;
+ tile_x_off = pWin->drawable.x - draw_x_off;
+ tile_y_off = pWin->drawable.y - draw_y_off;
fill = pWin->background;
switch (pWin->backgroundState) {
case None: