Commit aa5915ff authored by Alexandros Frantzis's avatar Alexandros Frantzis Committed by Alexandre Julliard

wineandroid.drv: Set the current mode using gdi_device_manager.

parent faa0fc82
...@@ -289,13 +289,14 @@ BOOL ANDROID_UpdateDisplayDevices( const struct gdi_device_manager *device_manag ...@@ -289,13 +289,14 @@ BOOL ANDROID_UpdateDisplayDevices( const struct gdi_device_manager *device_manag
}; };
const DEVMODEW mode = const DEVMODEW mode =
{ {
.dmFields = DM_DISPLAYORIENTATION | DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL | DM_DISPLAYFLAGS | DM_DISPLAYFREQUENCY, .dmFields = DM_DISPLAYORIENTATION | DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL |
DM_DISPLAYFLAGS | DM_DISPLAYFREQUENCY | DM_POSITION,
.dmBitsPerPel = screen_bpp, .dmPelsWidth = screen_width, .dmPelsHeight = screen_height, .dmDisplayFrequency = 60, .dmBitsPerPel = screen_bpp, .dmPelsWidth = screen_width, .dmPelsHeight = screen_height, .dmDisplayFrequency = 60,
}; };
device_manager->add_gpu( &gpu, param ); device_manager->add_gpu( &gpu, param );
device_manager->add_adapter( &adapter, param ); device_manager->add_adapter( &adapter, param );
device_manager->add_monitor( &gdi_monitor, param ); device_manager->add_monitor( &gdi_monitor, param );
device_manager->add_mode( &mode, FALSE, param ); device_manager->add_mode( &mode, TRUE, param );
force_display_devices_refresh = FALSE; force_display_devices_refresh = FALSE;
} }
......
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