Commit Graph

34 Commits

Author SHA1 Message Date
Jasmine Iwanek
5f273265ae Assorted warning fixes 2025-02-02 03:24:50 -05:00
rilysh
189be035d2 Mark plat_vidapi() argument as const and remove the NULL
* plat_vidapi() accepts char pointer, which never gets modifed
later on. Mark it as const.

* In src/config.c, va_name is initialized as NULL, however,
plat_vidapi_name() never returns a NULL pointer, nor it was
initialized under a condition branch. Removing NULL, might
save one instruction, which requires zeroing the register
before setting its initial value.
2024-07-21 12:49:06 +05:30
Alexander Babikov
23ba920bbf Clean up the plat and ui API
Remove functions no longer defined or used on any plat/UI
Remove the old non-multi-monitor-aware plat_resize() and rename
plat_resize_monitor() to plat_resize()
2024-03-19 14:30:24 +05:00
OBattler
cf36889bd2 Unix SDL fixes, per suggestion by svenska. 2023-12-03 14:19:00 +01:00
Jasmine Iwanek
e6e7ec9532 Fix *nix SDL builds 2023-10-16 18:51:19 -04:00
Jasmine Iwanek
1c01f1e2e2 Cleanups in src/unix 2023-10-16 18:51:19 -04:00
OBattler
d6b7619878 Removed some duplicate variables in unix/unix_sdl.c, closes #3523. 2023-08-08 00:24:20 +02:00
Jasmine Iwanek
ed1b369abd Yet more sonarlint fixes 2023-05-29 06:21:17 -04:00
Jasmine Iwanek
cfe3fec2ba Fix issues on non QT unix builds 2022-12-19 21:17:59 -05:00
Jasmine Iwanek
acbe718f1e clang-format in src/unix/ 2022-09-18 17:22:55 -04:00
Jameson Ernst
84f5d9c393 Improve handling of High-DPI mice
- Reduce lower bound of mouse sensitivity
 - Add error accumulators to prevent small motions from being rounded off
2022-09-14 22:11:32 -07:00
Cacodemon345
27e4124574 qt: Fix performance regression 2022-07-12 14:41:38 +06:00
Cacodemon345
dec057020d Fix Unix backend build 2022-07-07 17:21:30 +06:00
Cacodemon345
0ce1a8edfe Fix compilation for non-Qt builds 2022-07-07 15:09:13 +06:00
Cacodemon345
8a3367ff6f Multi-monitor support (backend preparation part) 2022-07-03 01:18:23 +06:00
Cacodemon345
3b74aad9d6 qt: Add mouse sensitivity setting 2022-06-01 15:31:58 +06:00
Jasmine Iwanek
4674756664 More newline and whitespace cleanups 2022-02-20 16:26:40 -05:00
OBattler
ce8f66bc07 Reduced the texture size back 2048x2048. 2021-12-17 03:30:13 +01:00
OBattler
46807540ed Rewritten renderer blitting, fixes flickering when inversion or grayscale is used. 2021-10-06 02:26:30 +02:00
OBattler
03ed12a966 Various blitter fixes, should fix 8088MPH Kefrens segmentation fault. 2021-09-27 04:32:08 +02:00
Cacodemon345
d4cd4b7a44 Fix flickering on Unix backend 2021-09-20 16:27:10 +06:00
OBattler
f27fec1740 Removed EGA/(S)VGA render wake-up on zero-sized blit and fixed the last compile-breaking mistake in the Unix SDL code. 2021-09-13 23:28:00 +02:00
OBattler
96faa28eeb Removed the useless y1 and y2 parameters from the renderers' blit functions (and other places). 2021-09-13 23:19:10 +02:00
Cacodemon345
2092f1dceb Update unix_sdl.c 2021-09-10 18:01:21 +06:00
Cacodemon345
603bf1fdfd Port close fix to unix_sdl.c 2021-09-02 23:08:24 +06:00
Cacodemon345
a56fa559e1 Fix SDL2 fullscreen and make it borderless 2021-08-29 23:50:22 +06:00
Cacodemon345
6d84d19380 Delegate title setting to main thread on macOS
Resizing is done in main thread regardless of Unix platform
2021-08-29 23:50:22 +06:00
Cacodemon345
c46ebc6a5e Fix macOS compilation for real 2021-08-29 23:50:21 +06:00
Cacodemon345
0ea1872d67 Change SDL_SetWindowMouseGrab to SDL_SetRelativeMouseMode 2021-08-29 23:50:21 +06:00
Cacodemon345
635ef60c53 Fix buffer overflow on window title sets 2021-08-29 23:50:21 +06:00
Cacodemon345
8263fcab1f Implement mouse support 2021-08-29 23:50:21 +06:00
Cacodemon345
02d698ecaf Fix wrong variable reference 2021-08-29 23:50:21 +06:00
Cacodemon345
e0b36b52ca Implement window title setting 2021-08-29 23:50:21 +06:00
Cacodemon345
1b93e8e989 Initial Linux/Unix code 2021-08-29 23:50:16 +06:00