Commit Graph

100 Commits

Author SHA1 Message Date
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
Ricky Zhang
a46759990d
Backport SDL2 features from https://github.com/kanjitalk755/macemu
By default, without providing `with-sdl2` in configure it uses SDL1.
Users need to explicitly request SDL2.

Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-06-25 15:28:41 -04:00
kanjitalk755
a01387b1af prefs item "sdlrender" 2020-05-18 17:39:05 +09:00
kanjitalk755
c0dfecdd1a fix error for linux build 2020-03-23 11:58:42 +09:00
kanjitalk755
946f4bb77d BII/SS common: read keycodes, if failed, read BasiliskII_keycodes 2020-03-21 19:48:58 +09:00
kanjitalk755
b3c4d46ca9 changed default keycodes file name 2020-03-21 10:21:53 +09:00
kanjitalk755
ecef51bc47 fixed keycodes file name (SS)
fixed capslock (Windows)
2020-03-19 11:10:02 +09:00
kanjitalk755
57b3f7cf21 keymap test 2020-02-05 15:22:58 +09:00
kanjitalk755
858f8257a6 Fix for SDL2.0.10 2019-10-20 15:35:50 +09:00
kanjitalk755
b62e20838c disable mouse grab if hard-cursor used 2019-05-03 18:50:41 +09:00
kanjitalk755
4603bd305c fix cursor for high DPI
ignore Alt+F4 for all platform
2019-04-01 12:29:42 +09:00
kanjitalk755
7131e8205d Windows: ignore Alt+F4 2019-03-30 13:23:52 +09:00
kanjitalk755
62deb590a6 fixed hot spot 2019-03-29 12:59:13 +09:00
kanjitalk755
2d76498256 hard cursor in full screen mode 2019-03-28 14:32:16 +09:00
Seth
1889560d1f deadlock and video fix comments tidied 2019-02-26 21:02:57 -06:00
Seth
537412b959 trying to remove graphical anomalies, alternative deadlock fix branch 2019-02-26 13:21:31 -06:00
kanjitalk755
1b6a63edf7 alternative PR#11 2019-02-26 14:57:02 +09:00
kanjitalk755
6751b6d668
Merge pull request #10 from DrLex0/better_video_modes_handling
Improve video mode handling
2019-02-24 12:05:00 +09: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
Alexander Thomas
0fe02268f7 Enable high-resolution SDL2 rendering.
Combined with 'scale_nearest true', this offers sharp graphics on retina
displays.
2019-02-23 20:10:11 +01:00
kanjitalk755
ab0948d02e BII/SS fix scroll wheel 2019-02-20 18:34:53 +09:00
kanjitalk755
d736cc58de add pref items for scaling 2019-01-12 18:22:51 +09:00
kanjitalk755
61b454b68a rollback caps lock 2018-07-13 18:38:53 +09:00
kanjitalk755
97f642676b fix caps lock again
symlink adb.cpp
2018-07-13 15:44:37 +09:00
kanjitalk755
bdd101e951 fix caps lock 2018-07-11 17:50:57 +09:00
kanjitalk755
8f2660a7de redraw when palette changed
modify keymap
2018-06-29 19:31:45 +09:00
kanjitalk755
8f0df8ec70 fix double free in SDL 2018-06-28 18:58:55 +09:00
kanjitalk755
700b57d758 added pref item "hotkey"
added MB notation pref item "ramsize"
2018-06-27 19:13:30 +09:00
kanjitalk755
52fe2290fe Linux: change configure defaults to SDL2
MinGW: change SDL1 to SDL2
2018-06-26 21:00:52 +09:00
kanjitalk755
a98054215e SDL related fix
update project files
add a pref
2018-06-14 18:26:27 +09:00
jvernet
e6808d6556 timer symlink ?? 2017-10-09 22:18:17 +02:00
David Ludwig
7a52abd378 bug-fix: video_sdl2.cpp would not compile in pre-C++11 2017-09-12 22:15:46 -04:00
David Ludwig
4e5e3377f1 Perf: re-enable VOSF on Xcode-made, OSX-host builds 2017-09-12 18:35:24 -04:00
David Ludwig
ef26204e6d Perf: make SDL2 backend update less pixels, when updating internal textures and surface(s) 2017-09-12 17:31:05 -04:00
David Ludwig
50986dcf46 Perf: make SDL2 use an ARGB8888 texture, which is natively supported via some GPUs + drivers, such as on OSX. This can remove an extraneous pixel-format conversion. 2017-09-10 14:34:13 -04:00
David Ludwig
78e3cbc8cb fixed compile-time warnings in video_sdl2.cpp 2017-09-09 16:49:09 +00:00
David Ludwig
1eb824a04e added pref, "sdlrender", which can force a specific, SDL2 renderer (software can be faster in some cases, such as on VirtualBox hosts) 2017-09-09 16:48:30 +00:00
David Ludwig
20ad70cb35 unset the executable bit from video_sdl2.cpp 2017-09-09 01:09:13 +00: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