diff options
author | Keith Packard <keithp@keithp.com> | 2004-08-12 00:09:30 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2004-08-12 00:09:30 +0000 |
commit | 9d0213525f4f692c250f10309146fe9db76ba12d (patch) | |
tree | 77df2a4d28294ec8e074a32f8205535668f4f629 /miext | |
parent | c7bc76f663008119b3681d4b7adef7dc9ffdc236 (diff) |
Paint to parent window instead of parent window's pixmap (helps for servers
that don't have a pixmap for the root)
Fix offsets for render drawing.
Diffstat (limited to 'miext')
-rw-r--r-- | miext/cw/cw_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miext/cw/cw_render.c b/miext/cw/cw_render.c index 9e9ad3a3f..8e4ae9cdd 100644 --- a/miext/cw/cw_render.c +++ b/miext/cw/cw_render.c @@ -106,8 +106,8 @@ cwGetBackingPicture (PicturePtr pPicture, int *x_off, int *y_off) WindowPtr pWin = (WindowPtr) pDrawable; PixmapPtr pPixmap = (*pScreen->GetWindowPixmap) (pWin); - *x_off = pPixmap->drawable.x - pPixmap->screen_x; - *y_off = pPixmap->drawable.y - pPixmap->screen_y; + *x_off = pWin->drawable.x - pPixmap->screen_x; + *y_off = pWin->drawable.y - pPixmap->screen_y; return pBackingPicture; } |