Commit Graph

517 Commits

Author SHA1 Message Date
Alibek Omarov
76363a555c engine: platform: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty 2026-02-21 01:20:34 +05:00
Alibek Omarov
a7f154d05a engine: platform: move SDL hints from android code to main SDL code 2026-02-05 08:45:23 +05:00
Alibek Omarov
cca6f8da2d engine: platform: sdl2: more robust error handling when creating a window and opengl context 2026-01-31 14:13:37 +05:00
Alibek Omarov
456ad17d05 engine: platform: sdl2: make fake fullscreen for windowed mode. Simplify the code by first creating window in windowed mode and then switching to fullscreen if requested 2026-01-30 00:16:19 +05:00
Alibek Omarov
5ee21ca6ab engine: platform: sdl2: remove window_x/ypos cvars 2026-01-30 00:16:19 +05:00
Alibek Omarov
cc9e3a5a81 engine: misc build fixes for clang with mingw 2026-01-24 07:21:30 +05:00
Alibek Omarov
56e5a95cb6 engine: platform: sdl2: add command vid_info to dump current SDL window state 2026-01-21 01:58:38 +05:00
Alibek Omarov
4bb547fdc7 engine: platform: sdl: revert disabled NET_WM_BYPASS_COMPOSITOR 2026-01-13 08:35:46 +05:00
Steven Linn
c865999302 engine: fix window position drift on X11 with window decorations 2026-01-13 06:31:29 +05:00
Steven Linn
cb69a52d65 engine: fix black fullscreen flash on startup in windowed mode 2026-01-13 06:31:29 +05:00
lewa_j
543d6d67e6 engine: platform: Make R_Init_Video parameter an enum 2026-01-13 03:25:29 +03:00
lewa_j
deb7b2061a engine: platform: WINDOW_MODE_* enums for vid_fullscreen instead of magic numbers 2026-01-13 02:16:05 +03:00
Alibek Omarov
41925a1aa7 engine: platform: sdl3: implement audio output using streams 2025-12-18 12:06:48 +05:00
Alibek Omarov
c834f7c559 engine: platform: sdl3: add events handler 2025-12-18 11:40:52 +05:00
Alibek Omarov
a66262a787 engine: platform: sdl3: add few more vid functions, add REF_WINDOW_TYPE_SDL3 to query specifically for SDL3 window 2025-12-18 10:26:06 +05:00
Alibek Omarov
3b51708160 engine: platform: sdl3: implement window creation, fill out required stubs to make it compile 2025-12-18 10:00:46 +05:00
Alibek Omarov
ee6004a88d engine: platform: sdl2: minor refactorings 2025-12-18 09:59:37 +05:00
Alibek Omarov
30ad3556dd engine: small refactorings in sdl2 support, enable messagebox and timer in sdl3 backend back 2025-12-16 05:18:28 +05:00
Alibek Omarov
ce08f071b1 engine: platform: sdl2: use permonitor DPI awareness to avoid unneeded window titlebar resize 2025-12-14 02:23:07 +03:00
Alibek Omarov
e102857735 engine: platform: sdl2: prefer tga icons on Windows 2025-12-14 02:17:44 +03:00
Alibek Omarov
e973c42bfa engine: platform: sdl2: fix stupid bug when window of the size of display gets interpreted as fullscreen window 2025-12-14 02:12:44 +03:00
Alibek Omarov
4a16ca8bc0 engine: platform: sdl2: fix fullscreen mode not fullscreening 2025-12-14 01:01:59 +03:00
Alibek Omarov
f9e82170ac engine: platform: sdl2: set window position to undefined when coming back from fullscreen to windowed 2025-12-13 23:36:58 +03:00
Alibek Omarov
ad01be8866 engine: platform: sdl2: get maximized state in VID_SaveWindowMode 2025-12-14 00:44:05 +05:00
Alibek Omarov
40c7c5b348 engine: platform: sdl2: disable high dpi support on Windows temporarily 2025-12-14 00:17:01 +05:00
Alibek Omarov
09a68bbebd engine: platform: sdl2: allow DPI scaling on Windows 2025-12-09 19:22:40 +05:00
Alibek Omarov
2b7773d933 engine: platform: sdl2: rework picking suitable resolution when creating or modifying current window 2025-12-09 03:29:16 +05:00
Alibek Omarov
aaef9fd91c engine: platform: sdl2: simplify checking if window fits on any display, always grab updated window size 2025-12-08 21:12:40 +05:00
Alibek Omarov
15f37a301f engine: platform: sdl2: let system pick better window position if it doesn't fit anywhere 2025-12-08 21:01:13 +05:00
Alibek Omarov
807b5df17b engine: platform: sdl2: use generic SDL_GetWindowSizeInPixels to get physical window size, if possible 2025-12-08 19:06:29 +05:00
Alibek Omarov
2a3dcecfae engine: platform: sdl2: add a note about useless and broken WarpMouseInWindow on Wayland 2025-12-08 19:05:38 +05:00
Alibek Omarov
a858719a4b engine: platform: sdl2: restore scaling mouse position for hi-dpi support 2025-12-08 19:05:13 +05:00
Alibek Omarov
c844cf7ec1 engine: platform: sdl2: refactor VID_RestoreScreenResolution to accept window_mode_t instead of reading cvar value 2025-12-08 18:57:31 +05:00
Steven Linn
bf5821e4ea engine: fix vid_maximized always set to true when switching to windowed mode 2025-11-30 18:11:56 +05:00
Alibek Omarov
d5347a82cb engine: platform: get rid of the mouse pos scaling hack, this is not how highdpi issues should get resolved 2025-11-27 19:34:51 +05:00
Alibek Omarov
75339193d7 engine: client: remove vid_highdpi cvar, always allow high dpi mode 2025-11-25 15:06:46 +05:00
Alibek Omarov
07da038b4b engine: platform: sdl2: move dpi awareness hint set before SDL_Init, as documentation says it needs to be set before video init 2025-11-23 14:54:15 +05:00
Alibek Omarov
a2b597577f engine: platform: sdl2: do not hide X11 hints under any platform macro 2025-11-23 14:50:51 +05:00
Alibek Omarov
9cf2d9fa86 engine: platform: sdl2: set up DPI awawareness on Windows through SDL hint 2025-11-23 14:50:12 +05:00
Alibek Omarov
d45ced5c66 engine: platform: sdl2: when closest video mode isn't found, revert to desktop video mode 2025-11-23 12:50:54 +05:00
Xav101
7236094421 platform: add missing include 2025-11-17 03:08:38 +08:00
Xav101
c85c6f80e0 platform: fix type in formatter string 2025-11-17 03:08:38 +08:00
ksagameng2
a9bf700da4 Restore iOS build support (#2352)
* initial commit

* initial commit

* add port files

* ios: Changes to allow creating app bundle without xcode projects

* ios: Added mic perms request

* ios: Very basic app bundle creation script

* ios: Fix -log parameter

* ios: Sdk no longer hardcoded and option to compile for simulator

* general: Update gitignore

* ios: Enable game mode for the app

* ios: Compile instructions and updated ipa creation script

* ios: Code cleanup

* ios: Remove dylibs

* general: Remove extra submodules

* ios: Remove dylibs again

* ios: Implement suggested changes

* ios: Fix building as dylib instead of binary

* ios: Scripts for building mods

* ios: Move 'ios' contents to engine/platform/ios/bundle and modify scripts

* ios: Update createipa.sh to use waf install

* ios: Clean script and updated README

* general: Fix spelling mistake and outdated instructions

* ios: Clean up in xcompile.py

* ios: Fix createipa.sh generating an invalid ipa

* ios: Temporary fix for launch dialog textfield colors in dark mode
2025-11-01 18:32:00 +05:00
lewa_j
5c0cc771bc engine: win32: fix msvc warning "'LPSTR' differs in levels of indirection from 'string (*)'" with GetConsoleTitleA 2025-10-11 20:22:37 +03:00
lewa_j
37e9ac453b win32: engine: common: client: filesystem: Fix windows build with -Werror=implicit-function-declaration 2025-10-12 00:21:00 +08:00
Alibek Omarov
8d7ee70e7d engine: platform: android: include dlfcn.h for Android's LoadLibrary implementation 2025-10-08 05:27:53 +05:00
Alibek Omarov
0c08f113ea engine: platform: sdl2: add vrtld.h include for GL_GetProcAddress implementation 2025-10-08 05:24:59 +05:00
Alibek Omarov
8022c4826f engine: platform: sdl2: remove legacy eglGetProcAddress hack for old SDL2 versions 2025-10-08 05:24:16 +05:00
Alibek Omarov
3d132e0e83 common: port: move filesystem related macros to filesystem module, try to include less globally for faster builds 2025-10-08 05:03:29 +05:00
Alibek Omarov
a1d3b7d65f Remove STDINT_H macro, use stdint.h directly. Compilers and platforms that do not have this header shall provide them on their own. 2025-10-08 03:53:37 +05:00