Tomas Carnecky : x11drv: Return correct PBuffer drawable.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon May 8 15:38:10 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: f09dfe93b1df710f488b24b047623016a3880d3f
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f09dfe93b1df710f488b24b047623016a3880d3f
Author: Tomas Carnecky <tom at dbservice.com>
Date: Mon May 1 22:53:38 2006 +0200
x11drv: Return correct PBuffer drawable.
---
dlls/x11drv/init.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/x11drv/init.c b/dlls/x11drv/init.c
index 9774c6f..83eac53 100644
--- a/dlls/x11drv/init.c
+++ b/dlls/x11drv/init.c
@@ -412,9 +412,13 @@ INT X11DRV_ExtEscape( X11DRV_PDEVICE *ph
{
if(physDev->bitmap)
{
- if(!physDev->bitmap->glxpixmap)
- physDev->bitmap->glxpixmap = create_glxpixmap(physDev);
- *(Drawable *)out_data = physDev->bitmap->glxpixmap;
+ if (physDev->bitmap->hbitmap == BITMAP_stock_phys_bitmap.hbitmap)
+ *(Drawable *)out_data = physDev->drawable; /* PBuffer */
+ else {
+ if(!physDev->bitmap->glxpixmap)
+ physDev->bitmap->glxpixmap = create_glxpixmap(physDev);
+ *(Drawable *)out_data = physDev->bitmap->glxpixmap;
+ }
}
else
*(Drawable *)out_data = physDev->drawable;
More information about the wine-cvs
mailing list