Commit graph

636 commits

Author SHA1 Message Date
Alexandre Julliard d92b59717d include: Use proper dllimports for user32 functions. 2022-12-07 13:51:37 +01:00
Alexandre Julliard 402d50d5f9 include: Use proper dllimports for gdi32 functions. 2022-12-07 13:51:37 +01:00
Jacek Caban ecf31ba4c7 opengl32: Use default calling convention for WGL driver entry points. 2022-12-06 17:11:21 +01:00
Sven Baars e959299182 win32u: Use WMCHAR_MAP_SENDMESSAGE for NtUserSendMessage.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52877
2022-12-05 20:04:53 +01:00
Brendan Shanks 40baab6444 configure: Remove Carbon.framework check (always present on macOS). 2022-12-02 11:04:45 +01:00
Jacek Caban 6b2da0bab9 win32u: Move NtUserPrintWindow implementation from user32. 2022-11-29 12:50:22 +01:00
Jacek Caban ae984f630b win32u: Move NtUserValidateRect implementation from user32. 2022-11-29 12:50:20 +01:00
Jacek Caban 8bdfe2be19 win32u: Move NtUserGetWindowDC implementation from user32. 2022-11-29 12:50:19 +01:00
Jacek Caban be6f5ed95a win32u: Move NtUserGetDC implementation from user32. 2022-11-29 12:50:16 +01:00
Jacek Caban c2a43defec win32u: Don't use CDECL for __wine_get_wgl_driver. 2022-11-23 18:04:28 +01:00
Jacek Caban 65835e4b74 win32u: Remove __wine_get_wgl_driver PE entry point. 2022-11-23 18:04:28 +01:00
Alexandre Julliard 5084f4da2b win32u: Build without -DWINE_NO_LONG_TYPES. 2022-11-23 16:13:58 +01:00
Alexandre Julliard 670033b2cb win32u: Use int instead of long types in a few places.
To avoid typecasts in debug traces.
2022-11-23 16:11:48 +01:00
Alexandre Julliard d38a4a23fb win32u: Use int instead of long types for monitor index and flags.
To avoid typecasts in debug traces.
2022-11-23 16:11:48 +01:00
Alexandre Julliard 8bab39d946 win32u: Use int instead of long types for font sizes and flags.
To avoid typecasts in debug traces.
2022-11-23 16:11:48 +01:00
Alexandre Julliard 3ae7035afd win32u: Add a debug helper to print color values. 2022-11-23 16:11:48 +01:00
Alexandre Julliard 7eb1e94299 win32: Fix int/long type mismatches. 2022-11-23 12:02:27 +01:00
Zhiyi Zhang df012ba4eb win32u: Fix a memory leak. 2022-11-21 13:07:45 +01:00
Alexandre Julliard a1c8232b33 include: Remove custom/undocumented language identifiers.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-11-16 21:24:18 +01:00
Alexandre Julliard 1d6b3e1434 win32u: Use RtlGetLastWin32Error() instead of GetLastError(). 2022-11-13 11:31:43 +01:00
Alexandre Julliard 1ebf0f2b31 win32u: Always use the full union for sysparams entries.
This silences compiler warnings on gcc 12.
2022-11-09 21:10:29 +01:00
Zhiyi Zhang c196d2462d user32: Hook drawing menu buttons. 2022-11-04 19:23:55 +01:00
Rémi Bernon 38bef31fb6 win32u: Read mode from the registry if GetCurrentDisplaySettings fails. 2022-11-03 18:33:09 +01:00
Rémi Bernon 6ecffdad77 win32u: Write display settings to the registry in apply_display_settings.
As a fallback if ChangeDisplaySettings returns E_NOTIMPL.
2022-11-03 18:33:09 +01:00
Rémi Bernon 3468e96d3b win32u: Lock display devices while applying display settings. 2022-11-03 18:33:09 +01:00
Zhiyi Zhang 00ae070cd1 win32u: Skip detached monitors in is_window_rect_full_screen().
Fix a regression from ee405dd. After ee405dd, is_window_rect_full_screen() may compare window
rectangles against the empty rectangles of detached monitors. For example, is_window_rect_full_screen()
can incorrectly return TRUE for a (0, 0, 1, 1) rectangle because 0 <= 0 && 1 >= 0 && 0 <= 0 && 1 >= 0
is true.
2022-11-02 16:00:22 +01:00
Fabian Maurer df90a32511 win32u: Prevent use after free (Coverity).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2022-11-02 14:41:56 +01:00
Rémi Bernon 2fec6dd3e3 win32u: Add is_primary parameter to GetCurrentDisplaySettings. 2022-11-01 20:46:23 +01:00
Rémi Bernon 6aeaeed9fb win32u: Add primary adapter name parameter to ChangeDisplaySettings. 2022-11-01 20:46:22 +01:00
Rémi Bernon 0f1d8329f0 win32u: Force update display cache after NtUserChangeDisplaySettingsEx. 2022-11-01 20:46:22 +01:00
Rémi Bernon 8a9c34edb5 win32u: Add a BOOL force parameter to update_display_cache.
And call it recursively with force = TRUE instead of calling graphics
driver pUpdateDisplayDevices separately.
2022-11-01 20:46:22 +01:00
Nikolay Sivov 9da3b23643 win32u: Move NtUserDragDetect() to window.c.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-10-31 20:41:45 +01:00
Nikolay Sivov 645326214f user32: Add DragObject() stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53768
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-10-31 20:41:45 +01:00
Paul Gofman 21c373560f win32u: Implement NtUserDisplayConfigGetDeviceInfo(DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME). 2022-10-31 12:12:16 +01:00
Paul Gofman b2787fb15c win32u: Store output id in monitors cache. 2022-10-31 12:12:16 +01:00
Paul Gofman 162101bcb3 win32u: Move NtUserDisplayConfigGetDeviceInfo implementation from user32. 2022-10-31 12:12:15 +01:00
Paul Gofman 62f66c3da5 win32u: Store GPU luid in adapters cache. 2022-10-31 12:12:15 +01:00
Rémi Bernon ffbe1e6229 win32u: Write display modes to registry as binary blobs.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53484
2022-10-25 10:57:33 +02:00
Martin Storsjö 0cb2798125 win32u: Make sure that the stack buffer in set_multi_value_key is large enough.
This fixes stack overflows since
edecac8afd.

Signed-off-by: Martin Storsjö <martin@martin.st>
2022-10-24 18:48:39 +02:00
Ziqing Hui 7486c4061e win32u: Add font links for MS Mincho. 2022-10-24 18:43:13 +02:00
Ziqing Hui fa411158df win32u: Add font links for Meiryo. 2022-10-24 18:43:13 +02:00
Ziqing Hui 802c122661 win32u: Add font links for Yu Gothic UI. 2022-10-24 18:43:13 +02:00
Esme Povirk 8e73b48f34 win32u: Reject invalid length in SetWindowPlacement. 2022-10-24 11:16:06 +02:00
Jinoh Kang 25b05840d4 win32u: Fix data race in NtUserGetProcessDpiAwarenessContext. 2022-10-20 20:58:49 +02:00
Ziqing Hui 7afdc11cd2 win32u: Add font links for MS Gothic. 2022-10-20 17:21:45 +02:00
Ziqing Hui edecac8afd win32u: Add font links for MingLiU. 2022-10-20 17:21:45 +02:00
Ziqing Hui a528dd2f8f win32u: Add font links for Microsoft JhengHei. 2022-10-20 17:21:45 +02:00
Ziqing Hui 7117303093 win32u: Add locale_dependent member to struct system_link_reg. 2022-10-20 17:21:45 +02:00
Rémi Bernon 94ece19f8e win32u: Use session BaseNamedObjects for display_device_init mutex.
The mutex is also used in user32, gdi32, and winevulkan, where it is
opened through kernel32, which opens it from the session directory.
2022-10-19 18:48:30 +02:00
Ziqing Hui a32782d28b win32u: Add more linked fonts for Tahoma. 2022-10-17 17:51:02 +02:00