Commit f09dfe93 authored by Tomas Carnecky's avatar Tomas Carnecky Committed by Alexandre Julliard

x11drv: Return correct PBuffer drawable.

parent 4f7adfb0
......@@ -412,9 +412,13 @@ INT X11DRV_ExtEscape( X11DRV_PDEVICE *physDev, INT escape, INT in_count, LPCVOID
{
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment