Zhiyi Zhang
427152ec7b
winex11.drv: Fix NoRes mode handler having an empty mode.
...
After 25167fb286
get_primary_monitor_rect()
returns an empty rectangle before X11DRV_DisplayDevices_Init() is called.
So use get_host_primary_monitor_rect() to get the current X desktop size.
It's also more intuitive this way.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-05 17:31:05 +01:00
Rob Walker
70fbfa2cb8
winex11: Improve ChangeDisplaySettingsEx failed mode message.
...
The failed mode error message dumps all the mode fields, that were
being tested. Change this output so that only the mode fields
explicitly being matched against are displayed. Make the failed
message use formatting consist with the trace message, earlier in this
function.
Signed-off-by: Rob Walker <bob.mt.wya@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-24 20:12:05 +02:00
Alexandre Julliard
0f03f264b7
winex11: Add a helper function to return the primary monitor rectangle.
2013-10-14 17:26:14 +02:00
Alexandre Julliard
900b5f4b79
winex11: Remove some remainders of the ddraw HAL support.
2012-10-22 14:36:31 +02:00
Henri Verbeet
3ea8de2637
winex11: Use our own structure for mode information.
2012-07-03 14:57:07 +02:00
Alexandre Julliard
f13c65b4f5
winex11: Get rid of the old ddraw HAL support.
2011-04-12 17:42:12 +02:00
Roderick Colenbrander
2c39733eab
winex11: X11DRV_nores_SetCurrentMode return DISP_CHANGE_SUCCESSFUL when switching to the current mode.
2010-08-18 17:17:23 +02:00
Mikhail Maroukhine
3069ad44cb
winex11.drv: Fix compiler warnings with flag -Wcast-qual.
2010-03-29 12:17:46 +02:00
Dmitry Timoshkov
48973dad53
winex11: Indicate that dmDisplayFlags is also initialized.
2009-01-05 12:40:50 +01:00
Maarten Lankhorst
0a6459598a
user32/winex11.drv: Change all user32 operations to use CDECL.
2008-12-23 13:06:04 +01:00
Dmitry Timoshkov
fa61eac0f7
winex11.drv: Set the size of returned DEVMODE to least common one as XP does.
2008-05-05 12:54:05 +02:00
Marcus Meissner
75de624377
winex11: Set last error on enumerating display settings.
2008-01-09 13:38:03 +01:00
Dmitry Timoshkov
78718a41c7
user32: Add a test for an invalid DEVMODE passed to ChangeDisplaySettings, make it pass under Wine.
2007-12-20 10:47:49 +01:00
Stefan Dösinger
5461d505d7
winex11: Activate the depth-bpp difference.
2007-12-17 12:25:50 +01:00
Stefan Dösinger
ccab10bd46
winex11: Distinguish between bpp and depth.
2007-12-17 12:24:51 +01:00
Stefan Dösinger
211f429579
winex11: Remove an unused variable.
2007-12-13 13:09:46 +01:00
Dmitry Timoshkov
a7dba33cf3
winex11.drv: Use registry settings as a default display mode.
2007-12-05 12:21:32 +01:00
Dmitry Timoshkov
e388a49308
winex11.drv: Don't forget to initialize dmFields.
2007-12-05 12:21:10 +01:00
Dmitry Timoshkov
efda990877
winex11.drv: Use display device guid managed by explorer.
2007-11-19 15:00:11 +01:00
Francois Gouget
83e2f44268
winex11: Fix compilation on systems that don't support either nameless unions or nameless structs.
2007-11-05 15:06:35 +01:00
Dmitry Timoshkov
407db36684
winex11.drv: Initialize buffer size.
2007-11-02 12:35:57 +01:00
Dmitry Timoshkov
7bb12b9e8c
winex11.drv: Add support for saving/reading display settings.
2007-11-01 12:41:39 +01:00
Dmitry Timoshkov
2712eb50b1
user32: Initialize more fields in the DEVMODE structure.
2007-11-01 12:41:30 +01:00
Kolbjørn Fredheim
c960cae979
winex11.drv: Echo the video mode requested in the error message when not finding a matching mode.
2007-06-15 13:24:27 +02:00
Jan Zerebecki
85d9b0249f
winex11.drv: Set the refresh rate for NoRes to 60 instead of 0.
2007-02-23 11:24:29 +01:00
Francois Gouget
3e6aa43229
winex11.drv: Catch and report screen resolution change errors.
2007-02-23 11:24:16 +01:00
Vitaliy Margolen
6069d0d596
winex11drv: Win64 printf format warning fixes.
2006-10-09 15:23:33 +02:00
Alexandre Julliard
241abf4e1b
winex11.drv: Make some functions and variables static, and get rid of x11ddraw.h.
2006-08-02 13:21:58 +02:00
Vitaliy Margolen
334a0719b8
x11drv: Number of fixes for ChangeDisplaySettingsEx with tests.
2006-07-26 15:28:08 +02:00
Alexandre Julliard
bdb4fab7a7
x11drv: Renamed the x11drv directory to winex11.drv.
2006-06-16 09:57:50 +02:00