wgl: Set pbuffer dimensions in HDC.

This commit is contained in:
Roderick Colenbrander 2007-07-25 23:18:50 +02:00 committed by Alexandre Julliard
parent 8a02dbb43c
commit 1855eb25f3
1 changed files with 2 additions and 0 deletions

View File

@ -2153,6 +2153,8 @@ HDC X11DRV_wglGetPbufferDCARB(X11DRV_PDEVICE *physDev, HPBUFFERARB hPbuffer)
* All formats in our pixelformat list are compatible with each other and the main drawable. */ * All formats in our pixelformat list are compatible with each other and the main drawable. */
physDev->current_pf = object->pixelFormat; physDev->current_pf = object->pixelFormat;
physDev->drawable = object->drawable; physDev->drawable = object->drawable;
SetRect( &physDev->drawable_rect, 0, 0, object->width, object->height );
physDev->dc_rect = physDev->drawable_rect;
TRACE("(%p)->(%p)\n", hPbuffer, physDev->hdc); TRACE("(%p)->(%p)\n", hPbuffer, physDev->hdc);
return physDev->hdc; return physDev->hdc;