Commit Graph

124 Commits

Author SHA1 Message Date
robxnano
249dfc84ae Revert "SDL2: Stop hotkey commands accepting both Alt and Super when swap_opt_cmd = true"
The previous revert failed.
This reverts commit e28a9fc3a9.
2022-09-30 23:31:41 +01:00
robxnano
4c1c549ed6 Revert SDL2 hotkey code to original version
This reverts commits 3b7a89aad9
and e28a9fc3a9.
2022-09-30 23:09:23 +01:00
robxnano
3b7a89aad9 Moved code to set hotkey down bools to kc_decode
- Now hotkey message should always match the actual key
2022-09-27 18:25:27 +01:00
robxnano
36b2862d21 Ported hotkey and swap_opt_cmd preference support to SDL 1.2 2022-09-07 15:25:00 +01:00
robxnano
bfad0d3bba Removed redundant code 2022-09-07 10:23:54 +01:00
robxnano
dae2be8c48 ifdefs weren't placed correctly 2022-09-07 00:03:14 +01:00
robxnano
177a297527 Fixed string building for mouse grab hotkey message 2022-09-06 23:23:33 +01:00
robxnano
b1ab353085 Fixed building BasiliskII with SDL 1.2 2022-09-05 23:32:05 +01:00
robxnano
ed86a18497 Used std::string to fix crash on grabbing mouse with Ctrl+F5 2022-09-03 15:05:56 +01:00
robxnano
481b675e1a Try to fix building on SDL 1.2 2022-09-03 14:31:30 +01:00
rakslice
e5c4699923 put error message on stderr 2020-08-18 21:09:28 -07:00
rakslice
bb080a262e repeat gamma entries to handle B2 thousands (16-bit) color mode; ignore its solid grey palettes such as those that happen during mode changes 2020-08-18 04:21:23 -07:00
rakslice
b4b652d696 fix sdl error message output 2020-08-18 04:13:50 -07:00
rakslice
d1fcff0a08 corresponding gamma change for sdl1 2020-08-18 03:28:43 -07:00
Alexander Thomas
f91d6d9622 Improve video mode handling
Instead of using a generic list and then filtering 512x384 in SheepShaver,
start with the correct list right away. This avoids SS unexpectedly
refusing to run at 512x384.
2019-02-24 00:29:41 +01:00
kanjitalk755
6039a60549 fix merge error 2018-06-20 21:26:11 +09:00
kanjitalk755
7f8ddaeacf in case using SDL1
fix merge error of configure.ac
2018-06-18 18:42:19 +09:00
kanjitalk755
e01129b748 Merge commit '01f63e605a68856718dd16e07835cd2d61ba6727' into DavidLudwig_and_jvernet 2018-06-14 17:33:25 +09:00
kanjitalk755
e42b6a50c3 revert SDL 2017-12-05 23:49:59 +09:00
kanjitalk755
056dc36070 revert BasiliskII, change only SheepShaver 2017-11-18 13:08:30 +09:00
kanjitalk755
5065fb9d95 64-bit build for 10.10+ 2017-11-17 21:43:36 +09:00
jvernet
e6808d6556 timer symlink ?? 2017-10-09 22:18:17 +02:00
David Ludwig
1c0e8655dc for non-OSX hosts, make GNU Autotools revert to using SDL 1.x, if SDL 2.x can't be found 2017-09-08 23:43:01 +00:00
David Ludwig
68ee5f23f9 make video_sdl*.cpp's header-comments refer to the versions of SDL that they target 2017-09-04 12:49:54 -04:00
David Ludwig
a646f6dc3f added compile-time checks for SDL version, when compiling video_sdl*.cpp 2017-09-04 12:28:25 -04:00
David Ludwig
f8682679c2 moved SDL2 video code to video_sdl2.cpp; restored SDL1 implementation of video_sdl.cpp 2017-09-04 12:18:52 -04:00
David Ludwig
573ffee8b1 fixed issue #31, "on multi-monitor OS X host: cursor can get locked to fullscreen display for guest OS" 2017-09-04 11:41:26 -04:00
David Ludwig
7a36983f11 fixed issue #27: on OS X host, mouse can get locked to portion of fullscreen display 2017-09-02 15:54:33 -04:00
David Ludwig
0f8f30f639 Basilisk II, bug-fix: switching to fullscreen, via Ctrl+Enter, on a non-primary host display, could cause mouse cursor to jump to a different display
This bug was observed occurring on an OSX 10.12 host.
2017-09-02 15:36:56 -04:00
David Ludwig
cd57af7795 Basilisk II, bug-fix: on Mac, mouse-grabbing via Ctrl+F5 wasn't changing the title of the window 2017-09-02 10:58:53 -04:00
David Ludwig
eb36b34106 Sheepshaver: misc, runtime fixes on OSX hosts 2017-08-25 17:19:36 -04:00
David Ludwig
e55df3de96 build SheepShaver against SDL2, when using its Xcode 8 project file 2017-08-25 17:01:31 -04:00
David Ludwig
3bae0bbda9 commented on use of SDL_SetRelativeMouseMode 2017-08-23 20:56:54 -04:00
David Ludwig
7767f128e5 fixed issue #19: on OS X, display can slide around if initial clicks are near top of screen 2017-08-23 20:52:30 -04:00
David Ludwig
5d4560c1a7 fixed issue #21, "BasiliskII, Win32: resizing a window does not stretch screen" 2017-08-19 17:45:26 -04:00
David Ludwig
e49cd855c2 made windowed-mode windows be resize-able/scale-able - guest OS display size is retained, though 2017-08-15 21:47:45 -04:00
David Ludwig
b9c9687153 bug-fix: anti-aliasing not always working 2017-08-14 14:50:05 -04:00
David Ludwig
2d035eb3e9 bug-fix: mouse cursor could get locked to top-left corner, when in fullscreen 2017-08-14 14:49:29 -04:00
David Ludwig
f7fceaf096 fix Issue #18: 512x384 guest display leads to app exit-on-startup 2017-08-14 14:44:09 -04:00
David Ludwig
9116cae283 apply anti-aliasing where available and appropriate 2017-08-14 14:41:04 -04:00
David Ludwig
0e5ce49f46 fixed issue #9: maintain guest OS' aspect ratio, when in fullscreen 2017-08-14 14:26:54 -04:00
David Ludwig
09c100ff42 partial fix for issue #16: color is incorrect on Linux
Thousands of Colors mode is still broken, however, Millions of Colors does work, which did not before this commit.
2017-08-14 12:48:36 -04:00
David Ludwig
99f50637e1 possible fix for Issue #13: replace SDL_CreateRGBSurfaceWithFormat calls with older + backwards-compatible SDL_CreateRGBSurface calls 2017-08-14 12:01:34 -04:00
David Ludwig
c6fefd0750 fixed issue #1: SDL2 backend did not support 2 or 4 bit color, in guest OS 2017-08-10 12:31:41 -04:00
David Ludwig
251c185dcd renamed variables in SDL2 backend, for improved readability 2017-08-10 10:57:58 -04:00
David Ludwig
8705276206 updated Windows + MSVC support with SDL2 support 2017-07-23 20:49:29 -04:00
David Ludwig
1190a2b127 bug-fix, Issue #4: prevent guest OS from causing desktop/Spaces switches on OS X host 2017-07-23 15:22:00 -04:00
David Ludwig
a1a85a9315 bug-fix: don't double-free the inner SDL_Surface, when the guest OS switches video modes 2017-07-22 21:31:06 -04:00
David Ludwig
1d5b8e95af use the host-OS' desktop resolution, when entering full-screen. This enables use of Mac OS X's "Spaces" feature, when going to fullscreen. 2017-07-22 20:40:31 -04:00
David Ludwig
cb982ee2ed use SDL 2.0.5+, rather than SDL 1.x
This change may end up being a bit slower on some systems, as the SDL backend will now render its content to two, new, SDL_Surfaces: one of which is in the guest OS' resolution, the other of which is application defined.

SDL2's SDL_Render API is used, which exposes some rudimentary elements of GPU + texture-based programming.  Basilisk II now maintains a single 'SDL_Texture' object, which is an SDL representation of a GPU texture.  The 'outer' surface will be used to update this texture, as requests to redraw are made.

TODO: look into removing the 'outer' SDL surface, and see if we can just copy the 'inner' surface to the SDL_Texture.
TODO: the entire SDL_Texture is updated, any time a request is made to draw.  Look into minimizing this a bit.
2017-07-22 20:29:30 -04:00