Ethan Lee
c7e29a9e95
wayland: Fix toggling fullscreen with fixed-size windows
2021-04-07 13:53:15 -07:00
Ozkan Sezer
e97cfe4ad1
KMSDRM_Vulkan_CreateSurface(): fixed pointer-cast warning on 32 bit
...
Closes: https://github.com/libsdl-org/SDL/issues/4284
2021-04-06 23:56:10 +03:00
okuoku
8fa2ce5601
WinRT: Rename Interface ID symbols
...
Rename locally-defined Interface ID symbols to avoid conflict with
locally linked dxgi library. Prefixed with `SDL_` to match with
other references in render_d3d11 or wasapi.
2021-04-04 09:19:16 -04:00
Nicholas "LB" Braden
3dbc4cf233
Fix compilation error for Windows SDK 8.1+
...
https://docs.microsoft.com/en-us/windows/win32/api/shellscalingapi/ne-shellscalingapi-monitor_dpi_type
2021-04-04 08:39:12 -04:00
meyraud705
413a2306bc
NULL passed to strcmp in Wayland_ShowMessageBox
2021-04-04 08:15:33 -04:00
Ryan C. Gordon
354cabd4a7
egl: favor truecolor configurations.
...
If app requested <= 16 color depth and there is a 24-bit config available,
favor that. This fixes things that quietly expect to get truecolor output
but don't request it (...like SDL's render api...) and things that are
probably requesting 16-bit color as a fallback but expecting reasonable
systems to give them full depth.
Specifically, this fixes Life is Strange on Wayland, which uses the latter
approach, and anything using SDL_Render on Wayland, which uses the former.
Fixes #4056 .
Fixes #4132 .
2021-04-03 18:48:54 -04:00
Ryan C. Gordon
4abe34461f
SDL_EGL_ChooseConfig: cleanups and minor optimizations.
...
- Move an immutable condition out of a for loop.
- Add a break statement to that loop when we find what we're looking for.
- Add an assert to make sure we don't overflow a buffer.
- Wrap a single-statement if block in braces.
- Adjust some whitespace.
2021-04-03 10:10:58 -04:00
Ryan C. Gordon
dbdbae44c5
linux: (de)initialize d-bus at init and quit.
...
Previously we had different subsystems quitting it, in conflict, and risked
multiple threads racing to init it at the same time.
Fixes #3643 .
2021-04-02 14:35:11 -04:00
Vanfanel
fa81883418
[KMSDRM] Fake refresh rate precision on Vulkan display mode creation.
2021-03-31 15:32:17 -04:00
Vanfanel
942aa7bd07
[KMSDRM] No need to use an SDL_VideoDisplay pointer to access display index.
2021-03-31 15:32:17 -04:00
Learath
033c0abb58
Use dispatch_async for -[NSOpenGLContext update]. Fixes #3680
2021-03-31 10:46:31 -04:00
Ethan Lee
eeee730833
wayland: Implement IME support.
...
Note that this is purely to make it possible to enter text that requires
composition - for example, before this commit Kanji input didn't work at all.
The big problem this still has is that we need the window position, and this is
still not implemented. Once we have this information we can do the equivalent
of XTranslateCoordinates to put the rectangle where we want it.
2021-03-29 15:54:36 -07:00
vanfanel
733b3278de
[KMSDRM] Minor Vulkan code adjustments regarding pointers and display index.
2021-03-29 11:07:36 -07:00
Vanfanel
9de7eaf9ac
[KMSDRM] Change error message.
2021-03-28 16:38:06 -07:00
Vanfanel
1ec60a38eb
[KMSDRM] Remove unnecessary space.
2021-03-28 16:38:06 -07:00
Vanfanel
c13c3c37bd
[KMSDRM] For Vulkan, use a mode with the same exact size as the window, if possible, or create a new one.
2021-03-28 16:38:06 -07:00
Ethan Lee
07ba13b7a9
wayland: Pass --no-wrap to Zenity.
...
There seems to be a bug where it can wrap the text based on the minimum possible
window size, which can be worked around with --no-wrap. This technically uncaps
the width entirely, but this isn't wildly different from what other backends do.
2021-03-27 02:57:39 -04:00
Ethan Lee
54719a9d3d
wayland: Assign output_len in ShowMessageBox
2021-03-27 02:57:39 -04:00
Ethan Lee
27b74d3334
Implement Wayland_ShowMessageBox using Zenity
2021-03-25 23:37:14 -04:00
Ozkan Sezer
5262b52ddd
SDL_kmsdrmvideo.c: define EGL_PLATFORM_GBM_MESA if it's missing.
...
Fixes: https://github.com/libsdl-org/SDL/issues/4232
2021-03-25 23:56:56 +03:00
vanfanel
5ac6bd5483
[KMSDRM] Ask for videomode on the correct display when creating a window.
2021-03-23 21:51:36 -07:00
Paul Cercueil
c12f46b100
[KMSDRM] Fix segmentation fault
...
Deference the windata pointer *after* checking that it's non-NULL.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
2021-03-22 22:20:01 +03:00
vanfanel
100166d7d7
[KMSDRM] Improve cursor management.
2021-03-22 10:48:02 -07:00
vanfanel
cf7eef37b0
[KMSDRM] Better error handling: no more segfaults on window creation failure.
2021-03-20 11:03:52 -07:00
Vanfanel
4acd1dcad4
[KMSDRM] Improve the way to test if last window is being destroyed.
2021-03-18 11:04:28 -07:00
Vanfanel
8638674a87
[KMSDRM] Correct comment typo.
2021-03-18 11:04:28 -07:00
vanfanel
82ff6045fa
[KMSDRM] Unload GL/EGL libs and destroy GBM only when we are destroying the last window.
2021-03-18 11:04:28 -07:00
vanfanel
c35e71892e
[KMSDRM] All non-vulkan windows have to be marked as OPENGL, not only the first created one.
2021-03-18 11:04:28 -07:00
vanfanel
281a7bdbb3
[KMSDRM] Make the gbm_init flag a viddata member to avoid GBM re-init when several displays are connected.
2021-03-18 11:04:28 -07:00
Vanfanel
7d1b9c9f15
[KMSDRM] Remove unneeded function calls and improve comments for future reference.
2021-03-17 11:29:13 -07:00
Haelwenn (lanodan) Monnier
9996cecc72
Set ALT_OGL to libOpenGL.so.0 instead of libOpenGL.so.1
2021-03-15 10:10:38 +03:00
Cacodemon345
5f7eb88ae0
Load libOpenGL.so.1 if libGL.so.1 is not found
2021-03-14 17:37:55 -07:00
kenmays
72bcf546f9
SDL: Updated patches for HAIKU
2021-03-13 18:36:01 -08:00
Sylvain Becker
3d22731d94
Merge pull request #4175 from 1bsyl/br_blit_rgb555_to_rb1555
...
Fixed bug 3727 - Blit from RGB555 to ARGB1555
2021-03-11 20:10:07 +01:00
Sylvain
51345623e8
Fixed bug 3727 - Blit from RGB555 to ARGB1555
2021-03-11 20:06:09 +01:00
Ivan Epifanov
33127271e5
Fix typecasting
2021-03-09 12:10:40 +03:00
Ivan Epifanov
a4ddb175f1
Formatting
2021-03-08 09:07:12 -08:00
Ivan Epifanov
4f9fde8766
Fix types
2021-03-08 09:07:12 -08:00
Ivan Epifanov
e1d9cbf65c
Split mouse/kb grab
2021-03-08 09:07:12 -08:00
uyjulian
29153a1c63
SDL_vitamessagebox: rearrange if/else
...
Set messageboxdata and buttonid as unused variables
2021-03-08 09:07:12 -08:00
uyjulian
70a19fd5ab
SDL_vitamessagebox: if/else wrap preprocessor condition instead of two if conditions
2021-03-08 09:07:12 -08:00
uyjulian
c8abc88cd0
Add support for message box
2021-03-08 09:07:12 -08:00
Ivan Epifanov
3c1fe9cea6
WTF
2021-03-08 09:07:12 -08:00
Ivan Epifanov
6fab3323c3
Typo
2021-03-08 09:07:12 -08:00
uyjulian
b52e9459ba
Add support for open URL
2021-03-08 09:07:12 -08:00
Ivan Epifanov
23db5381a3
Fix defines
2021-03-08 09:07:12 -08:00
Ivan Epifanov
e56c44512a
Disable native framebuffer support
2021-03-08 09:07:12 -08:00
Ivan Epifanov
5e30d84b69
Fix display mode
2021-03-08 09:07:12 -08:00
Ivan Epifanov
10038228f9
Properly cleanup framebuffer
2021-03-08 09:07:12 -08:00
Ivan Epifanov
953101defd
Oops. Fix default framebuffer color
2021-03-08 09:07:12 -08:00