Commit Graph

112 Commits

Author SHA1 Message Date
Henrik Rydgård
4c83d30b59
Merge pull request #11831 from vit9696/macbuild
Bundle libSDL inside app on macOS, fixes #11830
2019-02-23 14:32:56 +01:00
vit9696
2ccd0156f5 Bundle libSDL inside app on macOS, fixes #11830 2019-02-23 14:15:17 +03:00
Henrik Rydgård
24510b8187 SDL/Qt: At least quit properly when switching backends 2019-02-23 11:55:34 +01:00
Unknown W. Brackets
556b17503b SDL: Allow PauseWhenMinimized to work.
Essentially fixes #6276, see also #10445 and its fix.
2019-02-18 05:29:38 -08:00
Unknown W. Brackets
bba008f162 Qt: Cleanup indentation.
Also some NULL -> nullptr.  No actual code changes.
2019-02-18 05:00:28 -08:00
Henrik Rydgård
aa47db846c
Merge pull request #11806 from unknownbrackets/sdl-fbdev
SDL: Force fullscreen desktop for USING_FBDEV
2019-02-17 17:14:14 +00:00
Unknown W. Brackets
555a8db335 SDL: Force fullscreen desktop for USING_FBDEV. 2019-02-17 06:27:41 -08:00
Unknown W. Brackets
dfc75e8c34 SDL: Prevent mouse capture on macbook trackpad. 2019-02-17 04:54:21 -08:00
Henrik Rydgård
7ccf23542d Fix SDL build 2019-01-26 12:03:20 +01:00
Unknown W. Brackets
adeca2c3ba GLES: Move some vendor bug checks to Draw. 2018-12-23 20:27:22 -08:00
orbea
2bbe0d7e65 SDL: Allow toggling fullscreen for GLES2 on desktops.
Fixes https://github.com/hrydgard/ppsspp/issues/11627
2018-12-02 20:03:54 -08:00
AreaScout
57bf9e3048 Add: allow touch screen events on fullscreen 2018-09-16 07:11:15 +00:00
AreaScout
1fb111c2bb Add: Touchscreen event support for SDL2 2018-09-08 07:15:31 +00:00
AreaScout
c6c66e7608 Add: Get user-preferred locale from OS (linux only) 2018-09-01 16:43:37 +00:00
Unknown W. Brackets
b4496f1975 Core: Move config enums to separate file.
These are a bit strewn about and there are constants that aren't
consistently used, which just adds confusion.
2018-06-23 10:59:18 -07:00
Unknown W. Brackets
1b41759051 SDL: Avoid alpha on Mali/ARM devices using GLES.
See #10534.
2018-06-16 16:19:17 -07:00
hissingshark
84273ff5eb SDL: Buildfixes for EGL lookup. 2018-06-16 16:12:43 -07:00
Unknown W. Brackets
3b8a847654 SDL: Allow more EGL configs.
This attempts to choose the "best" config using weights.
2018-06-16 16:12:43 -07:00
Unknown W. Brackets
9be20323ef SDL: Start with window hidden.
This fixes start in fullscreen on Mac.  Otherwise, it animates to
fullscreen and back for every GL init attempt.
2018-06-09 16:57:00 -07:00
Unknown W. Brackets
34cef82ea3 SDL: Use UpdateScreenScale(). 2018-06-09 16:50:31 -07:00
Unknown W. Brackets
0345750500 SDL: Fix EGL build. 2018-06-06 05:36:01 -07:00
Unknown W. Brackets
a7023ac542 SDL: Move EGL init code into SDLGLGraphicsContext.
It should really be cleaned up, but I'm not sure if EGL_Open can be
moved later and don't currently have a setup to test, so I'm just
cargo culting.
2018-06-05 23:02:50 -07:00
Unknown W. Brackets
78a41980df SDL: Use fullscreen for mobile/GLES.
Also, allow resize for Vulkan outside mobile.

Thanks go to hissingshark.
2018-06-05 20:40:58 -07:00
Unknown W. Brackets
f2a75719d8 SDL: Properly try multiple GL versions.
Thanks go to hissingshark.
2018-06-05 20:40:50 -07:00
vnctdj
3f4bfddafc Allow showing version only for SDL 2018-05-09 21:22:47 +02:00
Henrik Rydgård
0130e75852
Merge pull request #10801 from unknownbrackets/sdl-shutdown
Fix shutdown segfault in SDL, fix headless
2018-03-26 21:10:48 +02:00
Unknown W. Brackets
0d10bb8515 SDL: Fix shutdown ordering.
This fixes the segfault on quit.
2018-03-25 14:19:02 -07:00
Unknown W. Brackets
7abf9baf38 SDL: Use wstrings in Windows API calls. 2018-03-25 14:18:31 -07:00
Henrik Rydgård
043ba41b08 PPSSPPSDL: Throttle refresh rate when in menu. Fixes #10445 2018-03-25 15:34:01 +02:00
aliaspider
54d9406713 fix mingw and msvc cmake builds. 2018-03-23 03:18:13 +01:00
Henrik Rydgård
4b4a2a4096 Buildfixes 2018-02-25 11:25:16 +01:00
Unknown W. Brackets
cdf378d20c GLES: Prevent race condition on shutdown.
emuThreadState might become STOPPED before the last frame has been run,
which can cause WaitUntilQueueIdle to hang.

It's simpler just to wait until StopThread() is called, since it now is.
This will line up properly with run_.
2018-02-11 11:40:11 -08:00
Unknown W. Brackets
a85a88e112 SDL: Apply shutdown race condition fix. 2018-02-10 16:55:50 -08:00
Henrik Rydgård
d9af90e016 SDL: Fix issue with vulkan-to-opengl fallback 2018-02-10 09:09:13 +01:00
Henrik Rydgård
4d6c0cfb32 Buildfix 2018-02-08 01:11:51 +01:00
Henrik Rydgård
ae19c48138 Cleanup the Windows thread stuff to work like the other platforms. Not quite perfect yet. 2018-02-07 16:00:29 +01:00
Henrik Rydgård
b3a09791b1 SDL: Fix emuthread management to exit cleanly without hanging. 2018-02-07 12:22:19 +01:00
Henrik Rydgård
020eb9d86c Fix further memory leaks 2018-02-04 13:42:04 +01:00
Henrik Rydgård
79d1610148 Move SDLGLGraphicsContext.h to the correct location. Minor cleanup 2018-02-04 13:42:04 +01:00
Henrik Rydgård
99386da01e Minor cleanups 2018-02-04 13:42:04 +01:00
Henrik Rydgård
85446d6c51 Split the SDL graphics contexts into their own files. 2018-02-04 13:42:04 +01:00
Henrik Rydgård
c16e397fc6 SDL: NativeInitGraphics/NativeShutdownGraphics should run on the emu thread. 2018-02-04 13:42:04 +01:00
Henrik Rydgård
583c20991f Qt: Some cleanup and fixes. Still not working correctly with gl-render-manager. 2018-02-04 13:42:04 +01:00
Unknown W. Brackets
56a18907dd SDL: Oops, only start the emu thread for GLES.
Probably would've caused issues (at least weird vsync) for Vulkan.
2018-01-27 15:10:17 +01:00
Unknown W. Brackets
062566b67c Core: Set thread names when possible.
This doesn't seem to be working for lldb, though.
2018-01-27 15:10:17 +01:00
Unknown W. Brackets
59904c316b SDL: Allow running GL on thread.
Tested on a Mac.
2018-01-27 15:10:17 +01:00
Unknown W. Brackets
766b40aad8 GPU: Reset GPUBackend on graphics init.
This way, when using a port that doesn't support Vulkan, it doesn't just
silently use upside down GL, etc.
2017-12-26 16:02:55 -08:00
Unknown W. Brackets
d6da758ed3 GPU: Remove duplicate BACKEND constants. 2017-12-26 15:55:24 -08:00
Greg V
f3783bdb44 Add support for Vulkan on Wayland 2017-12-26 16:09:27 +03:00
Jan Beich
d4984ab991 SDL: unbreak on more non-Vulkan platforms
SDL/SDLMain.cpp:160:2: error: unknown type name 'SDL_SysWMinfo'; did you mean 'SDL_SysWMmsg'?
        SDL_SysWMinfo sysInfo; //Will hold our Window information
        ^~~~~~~~~~~~~
        SDL_SysWMmsg

SDL/SDLMain.cpp:433:2: error: unknown type name 'SDL_SysWMinfo'; did you mean 'SDL_SysWMmsg'?
        SDL_SysWMinfo sys_info{};
        ^~~~~~~~~~~~~
        SDL_SysWMmsg

SDL/SDLMain.cpp:440:2: warning: expression result unused [-Wunused-value]
        Window x11_window = sys_info.info.x11.window;
        ^~~~~~
2017-12-21 21:31:26 +00:00