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
d1fcff0a08
corresponding gamma change for sdl1
2020-08-18 03:28:43 -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
6985ad67fe
BII: prepare JIT
2020-08-13 21:00:42 +09: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
kanjitalk755
7c6b9a67f6
the first steps for Apple Silicon
2020-08-08 11:50:55 +09:00
Ricky Zhang
13017f711f
Fix a weird whitespace.
...
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-15 21:56:00 -04:00
Ricky Zhang
82524ba034
Unwrap the formula.
...
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-15 21:54:06 -04:00
Ricky Zhang
2e96512f26
Fix if/else format.
...
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-15 21:42:59 -04:00
Ricky Zhang
5f1b41eb42
Improve the comment readability.
...
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-15 21:14:20 -04: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
Seth Polsley
478fc39650
Setting optimization level
2020-07-14 23:07:46 -05:00
Seth Polsley
d7fb0ac298
Audio CD format as default and update based on data mode
2020-07-14 19:13:33 -05:00
Seth Polsley
8124b61d2b
Enable optimization by fixing inits and access bounds
2020-07-14 16:48:06 -05:00
Seth Polsley
4191a86895
Removing recovered references to coreaudio, not needed for sdl2 builds
2020-07-13 01:25:37 -05:00
Seth Polsley
c7a7e034ed
Cleaning associated xcode project files
2020-07-13 01:16:25 -05:00
Seth Polsley
2c8678417c
Remove coreaudio embed from BII builds since using SDL2 audio
2020-07-12 23:34:19 -05:00
Seth Polsley
7441d04a28
Minor cleanup of bincue vars
2020-07-12 16:54:40 -05:00
Seth Polsley
3e32a6da32
Enforce only one player at a time, pause any other
2020-07-10 17:02:04 -05:00
Seth Polsley
47fca465ba
Remove the one dependency on unicode for reading rom file
2020-07-07 01:05:41 -05:00
Seth Polsley
084a8fbd74
Does Win BII need Unicode? removing... no others have it and prefer to add it to both sheep and BII together
2020-07-07 00:18:18 -05:00
Seth Polsley
1775fb3776
Adding bincue flag in configure
2020-07-06 22:02:19 -05:00
Seth Polsley
80399941b2
Cleaning up build scripts with Bincue for Windows and *nix
2020-07-06 18:47:26 -05:00
Seth Polsley
30cf26e1f6
Windows bincue support
2020-07-06 00:04:08 -05:00
Seth Polsley
66a69dc79b
Refactoring to handle crossplatform bincue support
2020-07-05 23:54:53 -05: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
bae7a4d16b
Explained why the magic number used in 24bit ROM frame mapping.
...
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-04 14:45:21 -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
40f6c77775
Move the RAM debug message to the proper place.
...
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-03 19:42:55 -04:00
Ricky Zhang
7e83b9c49e
Fix Indentations.
...
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-07-03 19:42:10 -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
asvitkine
864b4a1652
Merge pull request #206 from rickyzhang82/pr-fix-framebuffer-bug
...
Abort when frame buffer memory allocation fails.
2020-07-01 21:36:25 -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
56665d30a3
For Darwin, the default addressing mode is memory banks.
...
When the host OS is Mac OS X, direct addressing in BII doesn't guarantee
that the allocated memory for frame buffer base address in the host
(FrameBaseHost) satisfies the following conditions:
- FrameBaseHost > RamBaseHost
- (FrameBaseHost - RamBaseHost) + Frame_Size < 4GiB
where RamBaseHost refers to the emulated RAM base address in the host.
This may cause the random hang problem where the allocated frame address
failed to meet the conditions above.
Because the direct addressing mapping is a simple math:
RamAddrMac = RamAddrHost - RamBaseHost.
See details: https://github.com/cebix/macemu/issues/203
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-06-30 18:07:25 -04:00
Ricky Zhang
18701c97df
Fix year in project
...
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-06-29 22:10:27 -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
1bfb0e94a3
Back out the hack from kanjitalk755
...
Remove the unused header.
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-06-27 12:13:51 -04:00
Ricky Zhang
dc8bb7e2a3
Back out the hack from kanjitalk755
...
- In 8 bit color game, the hack crashed the app.
- After backing out the hack, I can play 256 color game with displaycolordepth 8.
- By default, the displaycolordepth is 0.
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-06-25 16:56:40 -04:00
Ricky Zhang
d28599f49d
Backport MacOSX support.
...
- video_sdl2 for Mac OS X requires MacOSX update.
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
2020-06-25 15:50:40 -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
Ricky Zhang
b0bdceac34
Revert "Merge pull request #190 from fragglet/patch-1"
...
This reverts commit a4a2c88ed7d13df0d16c3f8a737fc06f329b70cc, reversing
changes made to 1918557e787da22766797f4354c1af13de06a09e.
2020-06-25 09:43:20 -04:00