Commit 21635133 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11.drv: Implemented DESKTOPHORZ/VERTRES device caps.

parent d302db41
......@@ -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 );
......
......@@ -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:
......
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