winex11.drv: Implemented DESKTOPHORZ/VERTRES device caps.

This commit is contained in:
Alexandre Julliard 2006-12-12 14:59:55 +01:00
parent d302db41aa
commit 21635133fb
2 changed files with 6 additions and 4 deletions

View File

@ -647,8 +647,8 @@ HDC WINAPI CreateDCW( LPCWSTR driver, LPCWSTR device, LPCWSTR output,
return 0;
}
dc->hVisRgn = CreateRectRgn( 0, 0, GetDeviceCaps( hdc, HORZRES ),
GetDeviceCaps( hdc, VERTRES ) );
dc->hVisRgn = CreateRectRgn( 0, 0, GetDeviceCaps( hdc, DESKTOPHORZRES ),
GetDeviceCaps( hdc, DESKTOPVERTRES ) );
DC_InitDC( dc );
GDI_ReleaseObj( hdc );

View File

@ -194,6 +194,10 @@ INT X11DRV_GetDeviceCaps( X11DRV_PDEVICE *physDev, INT cap )
return screen_width;
case VERTRES:
return screen_height;
case DESKTOPHORZRES:
return virtual_screen_rect.right - virtual_screen_rect.left;
case DESKTOPVERTRES:
return virtual_screen_rect.bottom - virtual_screen_rect.top;
case BITSPIXEL:
return screen_depth;
case PLANES:
@ -258,8 +262,6 @@ INT X11DRV_GetDeviceCaps( X11DRV_PDEVICE *physDev, INT cap )
case SCALINGFACTORX:
case SCALINGFACTORY:
case VREFRESH:
case DESKTOPVERTRES:
case DESKTOPHORZRES:
case BLTALIGNMENT:
return 0;
default: