1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00
Commit graph

265 commits

Author SHA1 Message Date
Rémi Bernon
7384591c71 win32u: Broadcast WM_DISPLAYCHANGE message on display settings change. 2022-09-23 15:16:49 +02:00
Rémi Bernon
59a76b3a86 win32u: Lock display devices mutex in find_adapter. 2022-09-23 15:16:49 +02:00
Rémi Bernon
fa32c2efc7 win32u: Use find_adapter_device_by_(name|id) helpers in find_adapter. 2022-09-23 15:16:49 +02:00
Rémi Bernon
aa1e59390f win32u: Factor out display_device lookup in separate helpers. 2022-09-23 15:16:48 +02:00
Rémi Bernon
981d59264f win32u: Move enumeration of available modes out of graphics drivers. 2022-09-23 15:16:48 +02:00
Rémi Bernon
bd8de2a882 win32u: Introduce a new internal WINE_DM_UNSUPPORTED display flag. 2022-09-13 22:07:22 +02:00
Rémi Bernon
a225ad4efd win32u: Pass adapter parameter to (read|write)_registry_settings.
And rename them to adapter_(set|get)_registry_settings.
2022-09-13 22:07:22 +02:00
Rémi Bernon
68e461a6c5 win32u: Avoid unnecessary copy of adapter path and device name. 2022-09-13 22:07:22 +02:00
Rémi Bernon
43434f8dae win32u: Avoid copying the modes array in NtUserChangeDisplaySettings. 2022-09-13 22:07:22 +02:00
Rémi Bernon
75e62eb720 win32u: Introduce reference counting to struct adapter. 2022-09-13 22:07:22 +02:00
Rémi Bernon
b197bd3bf8 win32u: Fill the local full_mode variable instead of using the modes array. 2022-09-13 22:07:22 +02:00
Rémi Bernon
9cbc9386b9 win32u: Rename get_full_mode variables and avoid using devmode directly. 2022-09-13 22:07:22 +02:00
Rémi Bernon
12d0792f74 win32u: Move display placement logic out of graphics drivers. 2022-09-02 17:53:15 +02:00
Rémi Bernon
d21da2a655 win32u: Move full display mode lookup out of graphics drivers. 2022-09-02 17:53:11 +02:00
Rémi Bernon
1c6722c41a win32u: Support interlaced and stretched display modes. 2022-09-02 17:53:11 +02:00
Rémi Bernon
25272711b4 win32u: Sort adapter display modes after reading from the registry. 2022-09-02 17:53:11 +02:00
Jacek Caban
803a5f0789 win32u: Move NtUserPerMonitorDPIPhysicalToLogicalPoint implementation from user32. 2022-08-27 16:53:28 +02:00
Jacek Caban
352e24dcdf win32u: Move NtUserLogicalToPerMonitorDPIPhysicalPoint implementation from user32. 2022-08-27 16:53:27 +02:00
Rémi Bernon
533b3def80 win32u: Only read/write valid mode fields from/to the registry. 2022-08-23 09:38:39 -05:00
Rémi Bernon
eaeef1def4 win32u: Use current mode position if desired mode doesn't specify it. 2022-08-23 09:38:39 -05:00
Rémi Bernon
f60716c9fc win32u: Always copy devmode in validate_display_settings.
So that updating dmPelsWidth / dmPelsHeight doesn't modify user devmode.
2022-08-23 09:38:36 -05:00
Rémi Bernon
3ec21c3ed3 win32u: Read registry or current mode when validation needs it. 2022-08-23 09:38:36 -05:00
Rémi Bernon
dd79a25b6c win32u: Do not keep display modes driver extra in the registry.
It's not always serializable and cannot be shared across processes.
2022-08-23 09:38:32 -05:00
Jacek Caban
50bbaf9d5e win32u: Fix handling uninitialized process_layout. 2022-08-18 21:42:27 +02:00
Jacek Caban
577fbb0ff1 user32: Move dialog proc getting implementation from win32u. 2022-08-18 21:42:26 +02:00
Jacek Caban
894d728b7e win32u: Use a separate helper to send messages from win32u. 2022-08-15 18:15:19 +02:00
Jacek Caban
40dbc84913 win32u: Use NtUserCallMessage for passing packed winproc result. 2022-08-12 22:12:32 +02:00
Jacek Caban
1dfedae903 win32u: Use RtlSetLastWin32Error. 2022-08-10 19:24:12 +02:00
Jacek Caban
f390b5b884 win32u: Store DPI awareness in ntuser_thread_info. 2022-08-08 18:47:44 +02:00
Rémi Bernon
82a77607da win32u: Split EnumDisplaySettingsEx into CurrentDisplaySettings entry. 2022-08-08 18:47:31 +02:00
Rémi Bernon
77412c1ca8 win32u: Ignore DM_POSITION mode fields for available modes. 2022-08-08 18:47:27 +02:00
Jacek Caban
929694c66d user32: Remove USER_CheckNotLock.
It's no longer interesting. Its remaining callers are not used by locked code, which is restricted to win32u.
2022-08-05 20:13:33 +02:00
Jacek Caban
421fb1c804 win32u: Introduce NtUserGetChildRect.
And use it in CalcChildScroll.
2022-08-05 20:13:33 +02:00
Jacek Caban
fa7aaca9f1 win32u: Remove no longer needed exports. 2022-07-28 17:34:03 +02:00
Rémi Bernon
546638a875 win32u: Read and cache adapter modes from the registry. 2022-07-27 23:07:06 +02:00
Rémi Bernon
20414797ed win32u: Introduce new add_mode device manager callback.
And use it to enumerate display modes in winex11 and wineandroid.
2022-07-27 23:07:06 +02:00
Jacek Caban
b20f39858c win32u: Use syscall interface for more sysparams functions. 2022-07-25 09:39:05 +02:00
Jacek Caban
88462d9127 win32u: Get rid of no longer needed NtUserSetCallbacks. 2022-07-21 23:03:29 +02:00
Jacek Caban
2ef6a6eee6 win32u: Remove no longer needed NtUserDispatchMessageA. 2022-07-21 23:03:29 +02:00
Jacek Caban
047d74c4b1 win32u: Move default IME window management from imm32. 2022-07-12 22:51:29 +02:00
Jacek Caban
f5b3283e24 win32u: Move window input context handling from imm32. 2022-07-12 22:51:29 +02:00
Rémi Bernon
d83fcafcd3 win32u: Move writing mode to registry out of graphics drivers.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-07-07 11:20:15 +02:00
Rémi Bernon
a7e135f4b3 win32u: Move NtUserChangeDisplaySettings mode validation to a separate helper.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-07-07 11:20:15 +02:00
Rémi Bernon
d9a4bdfdc0 win32u: Move reading mode from registry out of graphics drivers.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-07-07 11:20:14 +02:00
Rémi Bernon
566dd3af36 win32u: Fix NtUserChangeDisplaySettings comment.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-07-07 11:20:14 +02:00
Rémi Bernon
4ce220e4e8 win32u: Set generic DEVMODEW fields in NtUserEnumDisplaySettings.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-07-06 16:53:27 +02:00
Rémi Bernon
360f12d307 win32u: Move default UpdateDisplayDevices implementation out of nulldrv.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-07-06 16:53:27 +02:00
Rémi Bernon
0f96698b6c win32u: Add invisible winstation virtual monitor outside of nulldrv.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-07-06 16:53:27 +02:00
Alexandre Julliard
42fe58a452 win32u: Add missing terminating null on a GUID string.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-06 16:02:48 +02:00
Arkadiusz Hiler
af8ed02b57 win32u: Don't report cloned monitors in EnumDisplayMonitors().
Based on:
ca39b1c22d ("user32: Don't report mirrored slave monitors in EnumDisplayMonitors.")
2affb854e5 ("user32: Change slave to a more neutral word.")

Which seem to got lost during:
318673405c ("win32u: Move NtUserEnumDisplayMonitors implementation from user32.")

Fixes regression with Elite Dangerous launcher freezing when cloned
displays are present.

Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
2022-06-24 22:38:47 +02:00