Alibek Omarov
38e922557d
engine: platform: sdl: remove disabling vsync while we're not in game, as this is something users have been complaining a lot
...
It's not a big deal if level loading will take a few milliseconds more.
2025-02-28 08:27:38 +03:00
Alibek Omarov
f499286a87
engine: platform: sdl: don't call SDL_GL_SetSwapInterval each frame while we're not in game
2025-02-25 11:52:03 +03:00
Oleg
eda0ac92cc
engine: platform: sdl: change behavior when window position is not set
2025-02-09 08:54:31 +03:00
Oleg
546903ea05
engine: platform: sdl: write windows position changes even in fullscreen
2025-02-09 08:54:31 +03:00
Oleg
4975001795
engine: platform: sdl: enumerate video modes for display where window located is instead of display zero
2025-02-09 08:54:31 +03:00
Oleg
a078ad1f51
engine: platform: sdl: fix windows save position for multiple monitors
2025-02-09 08:54:31 +03:00
Oleg
8307f671d4
engine: platform: sdl: let platform decide where to put our fullscreen window
2025-02-09 08:54:31 +03:00
Alibek Omarov
128a1f59a9
engine: cleanup XASH_64BIT usage. Always use it from build.h
2024-10-24 16:39:09 +03:00
Alibek Omarov
64dbccb9bd
engine: platform: sdl: do not call SDL_VideoQuit in R_Free_Video, as one failed renderer will shut down whole SDL video subsystem
2024-08-21 12:18:06 +03:00
Alibek Omarov
70e11cc309
engine: platform: sdl: borderless fullscreen windows don't need to restore desktop resolution
...
* This fixes the case when we switch from windowed to borderless, minimize the window
and restore makes it lose it's fullscreen state
2024-08-16 12:25:08 +03:00
Alibek Omarov
7619824d80
engine: platform: sdl: return correct value from SW_CreateBuffer on success
2024-08-16 11:36:36 +03:00
Alibek Omarov
340871e03a
engine: platform: sdl: correct the message about glblit in ref_soft
2024-08-11 18:32:10 +03:00
Alibek Omarov
2c23a1e0a0
engine: platform: sdl: fix going fullscreen after manually changing VIDRESTART cvars (like width and height)
2024-07-31 00:53:29 +03:00
Alibek Omarov
1c84a5c8ad
engine: platform: sdl: disable restoring desktop resolution for mobile platforms, as it leads to unwanted window minimize (which correctly implemented by SDL by the way)
2024-07-09 19:52:11 +03:00
Alibek Omarov
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
Alibek Omarov
a1dceacc8f
engine: remove unused host.hMutex and host.hInst
2024-06-12 10:20:09 +03:00
Alibek Omarov
f86d84daed
engine: platform: sdl: initialize window name string when building with old SDL
2024-06-09 09:16:45 +03:00
Sheridan Kane Rathbun
98d88266a6
engine: platform: sdl: fix incorrect mouse cursor positioning on high-dpi displays ( #1623 )
...
Signed-off-by: SheridanR <sheridan.rathbun@gmail.com>
2024-02-23 20:54:17 +03:00
Bohdan Shulyar
f1bc9b87b1
platform: android: port to SDL
2024-02-19 17:47:40 +03:00
Alibek Omarov
df6546d5b1
engine: client: add new gamma implementation
...
* immediately expose it in RefAPI. Bump RefAPI to version 7.
* remove VID_StartupGamma, it's not used anymore
* remove stub lightgamma and direct cvars
* add a temporary check for v_direct and v_lightgamma default values
2024-01-09 03:33:24 +03:00
Alibek Omarov
9ec1e259b4
engine: platform: sdl: unused variable cleanup
2023-12-05 10:48:47 +03:00
Alibek Omarov
96a9172e36
engine: platform: sdl: check that we're handling SDL errors according to it's documentation
2023-10-26 23:06:50 +03:00
Alibek Omarov
8f819a2fde
engine: platform: sdl: fix forgotten icon setup call
2023-10-23 00:31:30 +03:00
mittorn
1bfb6c560a
platform/sdl: add check for missing hint defines
2023-10-22 20:02:14 +03:00
mittorn
24d6f1788a
platform/sdl: workaround ubuntu SDL2 bug preventing resolving any extensions on EGL
2023-10-22 20:02:14 +03:00
mittorn
6041bb0a43
platform/sdl: fix safegl
2023-10-16 06:47:55 +03:00
Alibek Omarov
4acd0e5304
engine: platform: sdl: grab input only in true fullscreen mode
2023-10-11 16:49:49 +03:00
Alibek Omarov
cb1063c305
engine: platform: sdl: fix qboolean to window_mode_t conversions
2023-10-10 14:41:39 +03:00
Alibek Omarov
59bfc8c32f
engine: platform: sdl: fix qboolean to window_mode_t conversions
2023-10-10 14:41:05 +03:00
Alibek Omarov
99f290b622
engine: platform: sdl: support borderless mode, slight refactoring
2023-10-10 14:11:28 +03:00
Alibek Omarov
cb19fa2f6d
engine: client: restore window maximized state after engine restart
2023-10-09 05:26:17 +03:00
Alibek Omarov
1fdf6180e6
engine: platform: sdl: merge required SDL2 platform changes for new Android port from @Velaron's tree
2023-06-05 21:51:59 +03:00
Alibek Omarov
a23e17c6d7
engine: platform: sdl: set QtWayland hints
2023-06-02 06:18:47 +03:00
Alibek Omarov
5d7d5319fd
engine: move ref cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
d4470402ee
engine: move vid cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
05560c7607
engine: always read and set vid_fullscreen value directly with it's object
2023-05-27 21:52:58 +03:00
Velaron
e27ac6b092
platform: win32: properly change icon
2023-05-20 23:32:19 +03:00
Alibek Omarov
ec2951cf45
engine: add size argument to COM_Default/ReplaceExtension calls
2023-04-26 05:20:45 +03:00
Alibek Omarov
a8de11643c
engine: platform: sdl: make GL_CreateContext and GL_DeleteContext functions static
2023-04-03 03:13:33 +03:00
Alibek Omarov
098c4c009b
engine: platform: sdl: fix incorrect HICON cast in SetClassLongPtr call
2023-03-21 05:16:07 +03:00
Andrey Akhmichin
573781b45d
engine: platform: sdl: replace va function calls.
2023-03-11 15:29:34 +03:00
fgsfds
6304b51f32
psvita: fno-short-enums, make ref_gl function somewhat
2023-03-11 07:09:18 +03:00
Alibek Omarov
21b9f07323
engine: platform: sdl: remove legacy XASH_NANOGL macro from vid code, it's only relevant for ref_gl
2023-02-14 18:52:51 +03:00
Alibek Omarov
b946ed4625
engine: platform: sdl: don't flood about closest display mode in case of no changes
2023-01-18 20:05:00 +03:00
Alibek Omarov
dd1d86c289
engine: platform: sdl: check usable display rect before creating window
2023-01-18 19:28:16 +03:00
Alibek Omarov
7157c3b441
engine: platform: sdl: don't enable high dpi code for Apple
...
It seems enables HighDPI awareness but doesn't create HighDPI OpenGL context
It needs some plist magic to be enabled back again
2022-08-08 23:53:20 +03:00
Alibek Omarov
79dc090aae
engine: platform: sdl: use SetClassLongPtr function to be compatible with 64-bit Windows API
2022-06-29 02:44:50 +03:00
Alibek Omarov
5285f51a26
engine: platform: sdl: fix loading ICO when it's in RoDir
2022-06-25 17:12:08 +03:00
Alibek Omarov
3e23634369
engine: platform: sdl: enable ICO support on Win64
2022-06-25 17:04:02 +03:00
Alibek Omarov
4e295622be
Revert "engine: platform: sdl: try to enable ICO icons for 64-bit Windows, ignore TGA flip attribute for icons"
...
This reverts commit 2182ba9630
.
2022-06-25 17:03:11 +03:00