Module: wine Branch: master Commit: 7ee7d3a83f9d9b1ab926aad25e86aadbdca78662 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7ee7d3a83f9d9b1ab926aad25e...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Sep 26 12:14:03 2012 +0200
winex11: Recreate the graphics context when setting the drawable.
---
dlls/winex11.drv/init.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/init.c b/dlls/winex11.drv/init.c index a876d39..d6b45d8 100644 --- a/dlls/winex11.drv/init.c +++ b/dlls/winex11.drv/init.c @@ -334,6 +334,9 @@ static INT X11DRV_ExtEscape( PHYSDEV dev, INT escape, INT in_count, LPCVOID in_d const struct x11drv_escape_set_drawable *data = in_data; physDev->dc_rect = data->dc_rect; physDev->drawable = data->drawable; + XFreeGC( gdi_display, physDev->gc ); + physDev->gc = XCreateGC( gdi_display, physDev->drawable, 0, NULL ); + XSetGraphicsExposures( gdi_display, physDev->gc, False ); XSetSubwindowMode( gdi_display, physDev->gc, data->mode ); TRACE( "SET_DRAWABLE hdc %p drawable %lx dc_rect %s\n", dev->hdc, physDev->drawable, wine_dbgstr_rect(&physDev->dc_rect) );