Commit Graph

545 Commits

Author SHA1 Message Date
StarryWorm 357fa00a4a rm class_db.h from resource.h 2026-02-27 19:08:29 -05:00
Rémi Verschelde ad4b910a10 Minimize include dependencies of display_server.h
- Removes `native_menu.h` dependency from `display_server.h`.
  It's now forward-declared in all DisplayServer implementations and should
  be included in the .cpp's.
- Removes some unused `rb_set.h` and `rb_map.h` dependencies, which leads to
  having to include them explicitly in half the scene and editor codebase...
  which shows how much we depend on `display_server.h`.
- Forward-declare `input_event.h`, so now we need only `keyboard.h`.
2026-02-17 19:45:31 +01:00
Thaddeus Crews 2f06af10e6 Merge pull request #106560 from SheepYhangCN/taskbar-progress-state
Add taskbar progress and state support for Windows & macOS
2026-02-16 10:19:21 -06:00
Josh Jones b8389cc76b Support output to HDR monitors
Co-authored-by: Alvin Wong <alvinhochun@gmail.com>
Co-authored-by: Allen Pestaluky <allenpestaluky@gmail.com>
2026-02-11 22:13:26 -07:00
SheepYhangCN 851faa08d8 Add taskbar progress and state support for Windows & macOS
Co-Authored-By: bruvzg <7645683+bruvzg@users.noreply.github.com>
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2026-02-09 19:48:53 +08:00
Nintorch eb019511ed Optimize files that #include input.h header 2026-01-28 14:21:00 +05:00
Thaddeus Crews ed0ae97d98 Merge pull request #114922 from DarioSamo/android-platform-gl3-fallback-fix
Fix fallback to OpenGL3 from Vulkan initialization on Android.
2026-01-27 09:04:14 -06:00
Pāvels Nadtočajevs b0320ef4ff [Windows] Use executable icon as default for the window. 2026-01-23 10:41:23 +02:00
Dario 542f8ddf22 Fix fallback to OpenGL3 from Vulkan initialization on Android. 2026-01-14 23:55:21 -03:00
Pāvels Nadtočajevs a45074e692 [Windows] Fix icon leak. 2026-01-02 19:37:03 +02:00
bruvzg 9ebe07e280 [Windows] Expand full screen border in the direction with no adjacent display, or display with min refresh rate difference. 2025-12-18 08:59:28 +02:00
Rémi Verschelde a5452ce8c5 sdl: Update to 3.2.28 2025-12-13 00:04:56 +01:00
Thaddeus Crews 7d517902e3 Merge pull request #113744 from blueskythlikesclouds/d3d12-editor-fullscreen-fix
Fix D3D12 looking blurry in the editor at fullscreen.
2025-12-08 11:54:04 -06:00
Skyth ab0a7f2da2 Fix D3D12 looking blurry in the editor at fullscreen. 2025-12-08 14:15:15 +03:00
Skyth 7205e21915 Fix Vulkan failing to initialize when compiling without D3D12. 2025-12-08 11:11:15 +03:00
Hilderin f3233372f1 Fix pressed keys resetted when hiding a window on Windows 2025-11-18 10:23:56 -06:00
Thaddeus Crews e46c2ea3fa Merge pull request #112379 from bruvzg/tts64id
Make `utterance_id` 64-bit.
2025-11-14 14:23:17 -06:00
Skyth 69401d6eb1 Fix crash when using ANGLE OpenGL on Windows. 2025-11-13 12:24:11 +03:00
Jono Kemball 3497a5dbf5 Windows: Fix window_get_size_with_decorations returning an invalid size when minimizing by storing previous value 2025-11-11 09:22:29 +13:00
Pāvels Nadtočajevs 281c74550a Make utterance_id 64-bit. 2025-11-07 10:21:20 +02:00
Skyth 613c9fb86f Improve rendering driver fallback on Windows. 2025-11-05 17:49:43 +03:00
Thaddeus Crews f3c30408d4 Merge pull request #112344 from blueskythlikesclouds/d3d12-transparent-background-fix
Create HWND swap chain when window transparency is disabled on D3D12.
2025-11-04 16:32:48 -06:00
Skyth 4cc5177f6b Create HWND swap chain when window transparency is disabled on D3D12. 2025-11-03 17:36:55 +03:00
Lukas Stark 0a679a0a7f [windows] Added early return for when toggling borderless while fullscreen 2025-11-01 22:55:41 +01:00
Haoyu Qiu 9f7ebaea5c Fix editor auto scale on Windows 2025-10-27 19:36:34 +08:00
Wagner f835707f7a Fix Windows native FileDialog filters not showing descriptions 2025-10-12 16:22:45 -03:00
Thaddeus Crews 5935a32e32 Core: Cleanup headers in core/config
- `MainLoop` now forward-declared in `OS`
2025-10-06 09:20:56 -05:00
chocola-mint ead282ff13 Remove file_access.h and script_backtrace.h includes from logger.h. 2025-10-05 17:49:23 +09:00
bruvzg ab287991cf [Windows] Simplify ANGLE fallback list and remove ID checks. 2025-10-03 08:07:43 +03:00
bruvzg 252329ce40 [Windows] Try reading GPU IDs directly from registry. 2025-09-05 11:09:31 +03:00
bruvzg 01d7abb9d0 [Windows] Save and restore window rect when switching to/from maximized+borderless mode. 2025-08-27 11:12:04 +03:00
Nintorch dd2e1b104b Fix DirectInput controllers on game startup
Now SDL and DirectInput don't complain when a game starts with a DirectInput controller already connected. Fixes "JoypadSDL::process_events: Error opening gamepad at index 1: IDirectInputDevice8::SetCooperativeLevel() DirectX error 0x80070006"
2025-08-21 13:21:48 +05:00
Pāvels Nadtočajevs 274f88c5b8 [Windows] Fix color picker on old versions of Windows 10. 2025-08-18 09:23:31 +03:00
Pāvels Nadtočajevs 33c92af2b5 [Windows] Release mouse buttons after native window drag/resize operation. 2025-08-04 15:14:27 +03:00
Nintorch 0b3496fb4f Add support for SDL3 joystick input driver
Made possible by EIREXE, xsellier and the SDL team.

This commit includes statically linked SDL3 for Windows, Linux and macOS.
The vendored copy of SDL3 was setup to only build the required subsystems
for gamepad/joystick support, with some patches to be able to make it as
minimal as possible and reduce the impact on binary size and code size.

Co-authored-by: Álex Román Núñez <eirexe123@gmail.com>
Co-authored-by: Xavier Sellier <xsellier@gmail.com>
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-06-25 01:28:50 +02:00
Adrien Ufferte a11a64fbf4 Comments spelling fixes 2025-06-15 01:36:10 +02:00
Lukas Tenbrink b13a0e1834 Rename String::resize to resize_uninitialized, to better communicate to callers that new characters must be initialized. 2025-06-11 18:13:02 +02:00
Rémi Verschelde 7d10c2a3f2 Merge pull request #104686 from bruvzg/bmaxwin
[Windows] Fix borderless maximized window mode.
2025-06-07 00:43:45 +02:00
Thaddeus Crews a6be6d1cd1 Merge pull request #106959 from bruvzg/w10_cleanup
[Windows] Drop support for Windows 7/8/8.1.
2025-06-02 18:51:46 -05:00
Pāvels Nadtočajevs 2d93e004b9 Cleanup and unify DisplayServer screen methods and documentation. 2025-06-02 08:03:48 +03:00
Pāvels Nadtočajevs 617e12a6b4 [Windows] Drop support for Windows 7/8/8.1. 2025-05-30 17:30:23 +03:00
lawnjelly f8f350a32a Add GLOBAL_GET cached macros.
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-04-30 15:08:50 +01:00
Thaddeus Crews ad40939b6f Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
2025-04-16 15:49:02 -05:00
bruvzg da1fca613f Fix crash in release build with llvm-mingw. 2025-04-15 20:18:11 +03:00
Thaddeus Crews 0d267e7b1e Core: Add dedicated BitField template 2025-04-11 11:53:26 -05:00
Thaddeus Crews 94282d88f9 Core: Use Math namespace for constants 2025-04-10 16:29:30 -05:00
A Thousand Ships 889410dcda Add String::replace_char(s) methods for performance and convenience 2025-04-10 13:08:45 +02:00
Thaddeus Crews e6a61b1ecc Merge pull request #76829 from bruvzg/ac_kit_direct
Implement screen reader support using AccessKit library.
2025-04-08 12:32:47 -05:00
Pāvels Nadtočajevs 4310cb82b8 AccessKit integration for macOS, Linux, and Windows. 2025-04-08 20:25:47 +03:00
Pāvels Nadtočajevs f37fb49739 Add separate minimize_disabled and maximize_disabled window flags. 2025-04-07 18:58:11 +03:00