x11drv: Return correct PBuffer drawable.

This commit is contained in:
Tomas Carnecky 2006-05-01 22:53:38 +02:00 committed by Alexandre Julliard
parent 4f7adfb04a
commit f09dfe93b1
1 changed files with 7 additions and 3 deletions

View File

@ -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;