Commit Graph

91 Commits

Author SHA1 Message Date
kanjitalk755
d9e0761bd9 BII and SS: linux arm64 2022-06-22 22:12:37 +09:00
kanjitalk755
fcf2c1d9b6
Merge pull request #122 from asvitkine/cleanz
Fix various compiler warnings with Xcode builds.
2022-04-05 15:14:57 +09:00
asvitkine
732029a512 Fix various compiler warnings with Xcode builds. 2022-04-04 23:44:30 -04:00
asvitkine
e069d84f5b Clean up forward declarations in favor of header files. 2022-04-04 13:42:58 -04:00
kanjitalk755
d05e5ab711 make swap_opt_cmd valid even if keycodes file is used 2022-01-18 11:45:55 +09:00
kanjitalk755
b2df4fed1f fix for SDL 2.0.14 2021-08-01 09:55:43 +09:00
kanjitalk755
90edd35246 swap_opt_cmd assumes false if keycodes file used 2021-06-30 11:25:05 +09:00
aarojun
c28a00f58a Add sdl_vsync option (vertical sync with SDL_Renderer) 2021-05-27 06:30:31 +03:00
kanjitalk755
7471c357c3 linux,Windows: fixed fullscreen 2021-03-04 14:29:02 +09:00
kanjitalk755
ce3e2f3693 prefs item "mousewheellines" accepts negative value 2021-03-03 14:59:37 +09:00
kanjitalk755
6d3fbba4cd Merge remote-tracking branch 'seghaxx/master'
# Conflicts:
#	BasiliskII/src/MacOSX/extfs_macosx.cpp
#	BasiliskII/src/SDL/video_sdl2.cpp
#	BasiliskII/src/Unix/configure.ac
2021-03-03 12:13:12 +09:00
kanjitalk755
65772919a1 specify OpenGL if non-Metal Mac 2021-02-28 18:56:58 +09:00
kanjitalk755
623abaa243 prefs item "title" 2021-02-27 18:29:57 +09:00
kanjitalk755
39cbc73a9f added SDL version check 2021-02-25 14:49:54 +09:00
kanjitalk755
09046e0a2f check Metal device 2021-02-14 16:25:02 +09:00
kanjitalk755
4cf65a3faf fixed initial window title 2021-02-10 22:12:38 +09:00
kanjitalk755
fbddf063cb fixed swapping opt and cmd key if keycode file is used 2021-02-07 09:34:22 +09:00
kanjitalk755
3f4eed670f fix for SDL 2.0.14 2021-02-02 18:35:57 +09:00
Seg
0c8529eca1 Merge remote-tracking branch 'cebix/master' into kanjitalk755/master 2020-12-30 07:22:50 -08:00
kanjitalk755
436c5df15f fix CapsLock for linux 2020-12-17 22:25:48 +09:00
rakslice
991496a4f4 Make the video_sdl2 warpmouse output a debug message
(cherry picked from commit 69574d53a9511b64092304f0969a31da4789051a)
2020-11-18 13:30:12 -08:00
rakslice
c0ceb74931 fix mouse warp destination coordinates; don't warp mouse cursor when it is not on the mac screen
(cherry picked from commit aa92a09475b2a18f51d21f10f2acd4242205db6c)
2020-11-18 13:29:56 -08:00
rakslice
c8c1a76381 prevent truncating unaligned rows in non-vosf mode with 16 colors or less
(cherry picked from commit 9d6124871be79f5c3028ebe3f5d1068dbcea0c84)
2020-11-17 05:23:04 -08:00
kanjitalk755
43cb7718e6 ignore key repeat 2020-10-08 17:10:49 +09:00
kanjitalk755
d20ba5d179 test a pref item swap_opt_cmd 2020-10-06 15:38:35 +09:00
kanjitalk755
be17ba9044 save initial gamma tables
change default gammaramp to off
2020-09-18 10:29:16 +09:00
kanjitalk755
7313b0284c BII: fix gamma ramp 2020-09-17 11:10:15 +09:00
kanjitalk755
d851a65548 fix gamma ramp when 16-bit color 2020-09-13 23:03:51 +09:00
Seth Polsley
6de9a5032d Splitting mac_pal and mac_gamma to always allow SDL gamma changes 2020-09-13 03:41:23 -05:00
kanjitalk755
21c16f991e switchable gamma ramp 2020-09-13 13:49:48 +09:00
kanjitalk755
3861177919 add pref item "mag_rate"
BII: JIT
2020-08-30 15:09:09 +09:00
Adam Sampson
4da2082c07 The mono palette hack isn't needed for SheepShaver. 2020-08-23 16:47:48 +01:00
rakslice
e5c4699923 put error message on stderr 2020-08-18 21:09:28 -07:00
rakslice
639f05da7e don't call SetWindowGammaRamp without sdl_window 2020-08-18 20:53:39 -07:00
rakslice
ba111a5cb7 Merge branch 'kanjitalk755_master' into gamma 2020-08-18 04:48: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
792ad5ccff cleanup 2020-08-18 03:28:23 -07:00
rakslice
ffee1ebad2 Add gamma support for direct color modes 2020-08-17 21:05:08 -07:00
kanjitalk755
630f4ffafb fixed leak 2020-08-12 20:49:14 +09:00
kanjitalk755
1f2b35fef2 reserve framebuffer 2020-08-12 11:39:58 +09:00
kanjitalk755
d906fb23b0 CD fix
default palette
2020-08-10 13:01:22 +09:00
Ricky Zhang
03ebc5375b
Fix comment.
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-15 20:55:34 -04:00
Ricky Zhang
342fbbce34
Port mini vMac guest OS screen ROM patch.
- Added Mac SE 24 bit ROM screen patch from mini vMac.
  The guest OS resolution in System 6 can be defined
  at an arbitrary combination.
- Mac frame buffer base mapping is moved out from guest RAM.
  This creates more leg room for the host frame buffer.
- Enable System 6 vscreen support in SDL2. Passed build and test.
- Enable System 6 vscreen support in SDL1. Passed build and test.
- Eanble System 6 vscreen support in XWidnow. Passed build and test.

See my [screen cast demo here](https://youtu.be/aXzM8t_u3zI)

Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-15 19:14:36 -04:00
Ricky Zhang
2595059146
Fix a minor bug for B/W palette.
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-04 16:47:58 -04:00
Ricky Zhang
e63c6b91dc
Patch SDL2 palette for 24bit ROM.
24bit ROM doesn't invoke video driver control. Therefore, a manual step
is required to add a black & white palette for guest_surface in SDL2.

Please check out [the screen cast here](https://youtu.be/br5Hjt9F6X4).

Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-04 14:22:33 -04:00
Ricky Zhang
98f3cab953 Fix indentation.
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-03 10:00:15 -04:00
Ricky Zhang
6f4da45eeb Enhanced scale up and scale down in SDL2.
- Enable window mode to be resizable.
- When restore the window, restore the scale ratio to 1.

Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-02 18:35:18 -04:00
Ricky Zhang
bdf5a276d3
Abort when frame buffer memory allocation fails.
- Remove unused code in vm_acquire_framebuffer function.

Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-06-30 18:25:50 -04:00
Ricky Zhang
8e88e462ee
Fix code review issues.
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-06-28 18:42:14 -04:00