Commit Graph

2882 Commits

Author SHA1 Message Date
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
David Ludwig
9128314cb8 Basilisk II compiles on Xcode 8, as a 64-bit Mac app
SDL 1.x is used for display, rather than Mac OS X specific backend.  If time permits, I'll port it to SDL 2, if only to reduce Basilisk's overall code foot-print.

Lots of features are apt to be disabled, as many 'dummy' backends were used.

Video-depths other than 1-bit or 32-bit are untested, and in some cases (4-bit, at least) are currently non-functional.  This is due to a partial re-write of the SDL backend's blitting code, which was non-functional when low-bit-depths were used.

The SDL backend was also rewired, on OSX, to not attempt to align the display buffer on page-boundaries.  So far, this doesn't seem to cause any notice-able problems, however, that's only using limited knowledge and testing (System 7.5.x does boot and display at 640x480, though!).  The original display-buffer allocation code was failing to run, in some cases.

Preferences are, on Mac, currently hardcoded to be accessed at /tmp/BasiliskII/BasiliskII_Prefs.  The folder, "/tmp/BasiliskII/", may be a symbolic link to elsewhere, though.
2017-07-22 17:43:42 -04:00
asvitkine
b5820d8059 Merge pull request #113 from bvarner/bitbakeable
Changes to the Configure script to improve cross-compiling
2017-07-21 00:16:45 -04:00
asvitkine
ac4955dcb9 Merge pull request #112 from dmac100/relative_mouse
SDL: Use relative mouse values when grabbed.
2017-07-21 00:14:45 -04:00
bvarner
53e965a223 Remove unnecessary comment. 2017-07-20 23:22:10 -04:00
bvarner
2210c87233 Updates to signal handling detection, enabling vosf for cross-compiled overrides. 2017-07-20 18:53:04 -04:00
bvarner
87ae776a41 Consistency... 2017-07-20 18:28:24 -04:00
bvarner
02ec5fc7d4 Added environment variable overrides for cross-compile defaults using AC_ARG_VAR.
This lets you setup an environment to cross-compile, with extended support for how things will behave.
This should let the build play nicely with bitbake, without changing the --flags, and without breaking existing behaviors.
2017-07-20 17:18:55 -04:00
dmac
9f58eb96dc Use relative mouse values when grabbed in sdl. 2017-07-16 12:07:08 +01:00
bvarner
1eae4613c6 Added gitignores for quilt patches 2017-07-14 15:08:02 -04:00
bvarner
bd3ef905fb Don't do that. 2017-07-14 15:07:31 -04:00
bvarner
df6d21c394 I'm stashing there here, even though i probably shouldn't. 2017-07-14 15:06:12 -04:00
bvarner
1bfd163cf5 Better handling of SDL. 2017-07-14 12:50:45 -04:00
bvarner
cc3c3edcc0 Updates 2017-07-14 12:42:10 -04:00
bvarner
ca56f6f263 Ah, yeah. whoopse. 2017-07-14 12:30:53 -04:00
bvarner
35de22c444 Undo the SDL bits to favor the pkg-config bits. This should be more portable. I'm not sure if I'm breaking the cygwin build here, so I may have to give that a shot. 2017-07-14 12:25:37 -04:00
bvarner
65d44391c3 Other generated sources when not using JIT 2017-06-29 00:19:40 -04:00
bvarner
9f9893f178 move some things around here. 2017-06-28 23:37:55 -04:00
bvarner
c93058f9a6 Use SDL 1. This isn't an SDL2 App. D'oh 2017-06-28 18:06:16 -04:00
bvarner
859c4f29b5 Undo a debug output and set sigsegv_recovery if we force ac_cv_have_extended_signals. 2017-06-28 18:02:37 -04:00
bvarner
89cf05aec6 Adding an echo here to see if it's testing under a cross-build. 2017-06-28 17:57:51 -04:00
bvarner
b5790efba9 Added an enable option to force cross-compiles to use extended signal handling. 2017-06-28 17:53:45 -04:00
bvarner
9dc8bba39a Added SDL2 macros 2017-06-28 16:14:09 -04:00
bvarner
023d0d57c7 Condense to guilty until proven innocent. 2017-06-28 15:54:00 -04:00
bvarner
9735385a47 Testing this out just to see what the output is underbitbake 2017-06-28 15:48:29 -04:00
bvarner
7ae960e4eb Add npth to the search path. 2017-06-28 15:00:45 -04:00
bvarner
a1bea9b897 Oh yeah, use a list. 2017-06-28 13:20:15 -04:00
bvarner
94a385352e bitbake still couldn't find it, so let's try brackets. 2017-06-28 13:17:12 -04:00
bvarner
ffa877ee6c Use AC_SEARCH_LIBS for pthread location. 2017-06-28 13:10:59 -04:00
bvarner
f2acf91add Adding addtional Quote around expressions in AC_TRANSLATE_DEFINE. During cross-compile builds, when values contain 'guessing yes' the single-bracket expands to multiple argments. Adding the additional quote around the entire expression avoids this. The translate call to was missing quotes, which was inconsistent with the rest of the translate calls. 2017-06-28 12:38:50 -04:00
bvarner
e671489ad1 Updated configure.ac with openssl cross-compiling updates for /dev/ptc and /dev/ptmx 2017-06-28 11:58:55 -04:00
Alexei Svitkine
14f2e85c6f silence some warnings 2017-04-20 20:44:03 -04:00
Alexei Svitkine
79ec72e0cb Remove -lclip from xcode8 project. 2017-03-31 01:08:44 -04:00
Andrew Tonner
da46a07b7c appveyor CI: Try build number with git commit 2017-01-23 00:46:19 -08:00
Andrew Tonner
6c8c55c5e2 bump build version names 2017-01-23 00:43:14 -08:00
Andrew Tonner
9a76eace57 appveyor CI: don't cache mingw metadata as this includes package installation status; only cache package files proper 2017-01-23 00:40:54 -08:00
Andrew Tonner
8bfa98f972 appveyor CI: fix build output path for archiving 2017-01-23 00:02:30 -08:00
Andrew Tonner
36bddb6ded Merge branch 'windows_build_script' into ci_build 2017-01-22 23:26:46 -08:00
Andrew Tonner
3a742ae3f2 python build script: symlink m4 dir before autogen that requires it 2017-01-22 23:26:36 -08:00
Andrew Tonner
902450a6e7 Merge branch 'windows_build_script' into ci_build 2017-01-22 23:01:18 -08:00
Andrew Tonner
2e7771a4ae python build script: put showing environment after the GTK install so we can double check the paths 2017-01-22 23:01:08 -08:00
Andrew Tonner
71192179e5 Merge branch 'windows_build_script' into ci_build 2017-01-22 22:15:41 -08:00
Andrew Tonner
2f8c7f441c python build script: set ACLOCAL_PATH for gtk 2017-01-22 22:15:29 -08:00
Andrew Tonner
dc2c146002 Merge branch 'windows_build_script' into ci_build
Conflicts:
	SheepShaver/src/Windows/build_on_msys.py
2017-01-22 21:12:54 -08:00
Andrew Tonner
519276d788 python build script: added gtk donwload/install 2017-01-22 21:11:01 -08:00
Andrew Tonner
fcfa19ca27 python build scripts: URLs cleanup 2017-01-22 21:10:22 -08:00
Andrew Tonner
b8b7b96a1c put build tools first in the path rather than last 2017-01-22 21:10:07 -08:00
Andrew Tonner
cc7a0df0c5 python build scripts: URLs cleanup 2017-01-22 21:08:55 -08:00
Andrew Tonner
d2e8b4283f put build tools first in the path rather than last 2017-01-22 19:39:16 -08:00
Andrew Tonner
0df6ef8d28 appveyor CI: show build environment in this build 2017-01-22 19:16:08 -08:00