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
Alibek Omarov
2182ba9630
engine: platform: sdl: try to enable ICO icons for 64-bit Windows, ignore TGA flip attribute for icons
2022-06-24 19:15:28 +03:00
Alibek Omarov
d0a39ef492
engine: client: rework mouse input again, do what GoldSrc does, minimize SDL mouse calls
2022-01-04 08:39:11 +03:00
SNMetamorph
c366e25a10
ref_gl: cvar gl_wgl_msaa_samples renamed to gl_msaa_samples
2021-11-23 05:17:19 +03:00
a1batross
3b192ca490
engine: sdl: don't free NULL vidmodes
2021-02-27 00:08:42 +03:00
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
2021-01-04 20:55:10 +03:00
mittorn
84a3f6883d
sdl: add EGL hint
2020-02-25 12:59:04 +07:00
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
2019-11-24 03:52:08 +03:00