Commit Graph

984 Commits

Author SHA1 Message Date
stephena a30149355a Added profile support to configure/Makefile (--enable-profile). If you
know what this is, you'll know how to use it :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@996 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-02-01 13:53:25 +00:00
stephena d91443ed89 Second pass at getting GP2X gamepad working. At least the code compiles
now :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@995 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-31 17:26:56 +00:00
urchlay 89b17f8ab0 Nightly builds now have the date in the version number, and look for
stella.pro in the current directory instead of the system dir.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@994 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-31 14:02:08 +00:00
stephena 04671c03d6 Bumped version number to 2.1.1.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@993 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-30 16:23:01 +00:00
stephena 1c80f5b1c7 Preliminary support for converting buttons to HAT events for the GP2X
gamepad, implementing 'case 2' configuration.  This hasn't been tested
yet, since I don't have the hardware.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@992 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-30 16:20:41 +00:00
stephena 801f4a1bf9 First pass at infrastructure for polling platform-specific hardware.
This is needed particularly for the GP2X joystick direction handling,
where directions are (incorrectly) implemented as button events
instead of more intuitive HAT events.  When this is complete, it will
also remove the EventHandler 'kJDirXXX' enums, which I always thought
was dirty code anyway.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@991 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-30 01:01:44 +00:00
markgrebe 31c0d39ecf Set Xcode project back to Deployment mode, so optimization is turned on, as this was accidently left off for the 2.1.0 release. Also, fixed issue with video size menu items.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@990 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-29 23:06:10 +00:00
urchlay 4bdf5dfbf7 Update SlackBuild script for 2.1 release
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@988 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-28 15:59:35 +00:00
stephena 306a930925 Updated Win32 installer for 2.1 release.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@987 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-28 14:56:39 +00:00
stephena 94cb970ef5 One last update for RPM SPEC file.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@986 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-28 14:37:31 +00:00
stephena c98537e87d Updates RPM SPEC file for 2.1 release.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@985 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-28 14:23:03 +00:00
markgrebe 9554ae1b4b Update copyright dates in about box
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@984 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-28 04:34:24 +00:00
markgrebe dd7caec1f3 Updated Xcode project file for release version number
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@983 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-28 03:50:34 +00:00
stephena e2e64e71ce Bumped version # for 2.1 release.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@982 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-27 20:43:49 +00:00
stephena c440951c4d Conditional compilation of some joystick stuff in EventHandler, for ports
where the extra code was causing a slowdown at startup.  Also removed
some dead JS code.

Disable phosphor effect by default for GP2X, since the FrameBuffer isn't
optimized enough yet to handle it.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@981 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-25 01:42:47 +00:00
knakos bb195d033f add support for raw framebuffer access method. QVGA smartphone support in.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@980 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-24 22:57:55 +00:00
knakos 4b6344d513 keep up with core changes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@979 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-24 22:56:27 +00:00
knakos 43400e4477 Creation of the readme file for the wince port.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@978 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-24 22:54:18 +00:00
stephena 970e2d0962 Added info for GP2X port.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@977 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-23 16:07:14 +00:00
stephena ca3e68dc7b Added phosphor effect for 24-bit colour depth in software mode. I'm unable
to test this, so I'm sure that it's probably slow and doesn't render
correctly.  For anyone using this mode; switch to 16-bit software mode,
use OpenGL, or get a better video card :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@976 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-20 20:07:25 +00:00
stephena b946072594 Some more documentation updates. Maybe we can recruit a webpage maintainer
at some point, since this type of work bores me to tears :(


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@975 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-20 15:13:37 +00:00
stephena 500025b5b8 Fixed bug in getScreenDimensions returning incorrect values.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@974 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-20 13:45:45 +00:00
markgrebe d9d639d854 Updated OSX project file
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@973 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-20 05:28:06 +00:00
stephena 714afabf02 Some documentation updates for the forthcoming 2.1 release.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@972 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-20 02:38:47 +00:00
stephena 02bc6ed0cf Fixed event mapping of analog events to different input types; the only
supported input type is joystick axes.  It doesn't really make sense to
assign analog events to hats/buttons/keys, since they're not analog in
nature.

Reworked the MediaFactory/FrameBuffer classes so that we always get a
valid FrameBuffer object.  So no more crashes because of NULL
FrameBuffer pointers.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@971 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-19 00:45:13 +00:00
stephena a245adcc12 Only bind joystick axis events to paddle movement in analog mode, since
that's the only input where it really makes sense.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@970 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-18 20:43:22 +00:00
stephena cff3bf75a4 Fixed potential crash and drawing error when using the directory browser.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@969 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-16 01:56:18 +00:00
stephena da8b6c35f6 Fix for FrameBuffer::cls() crash in OSX. I don't think we really need
the functionality in OpenGL anyway.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@968 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-16 01:23:55 +00:00
markgrebe 5a5151def7 Changed default setting for video to gl, not opengl, as was erroneously in the previous version.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@967 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-15 23:43:40 +00:00
stephena 9d1a9977c3 Some fixes for the OSX port. Mark, do these work??
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@966 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-15 22:43:21 +00:00
stephena e75b50cab8 Fixed install/uninstall for configurable DATADIR support.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@965 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-15 21:02:22 +00:00
stephena 0ffc5863a7 Fixed long-standing GUI drawing bug whereby items were being redrawn
before a certain state was entered.  For example, launching a game
and bypassing the ROM launcher would attempt to draw elements from
the debugger, with coordinates that were usually larger than the
current screen.

Made system-wide location of stella.pro/stellarc files configurable
at build-time.  They're now stored in DATADIR/stella, where DATADIR
can be changed with "--datadir=..." during configure.  This is only
enabled for UNIX for now.

Added missing 'cheat' and 'break' to commandline description.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@964 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-15 20:46:20 +00:00
stephena d75868d33d Make sure screen is cleared when switching modes; hopefully this will fix
the problem with the GP2X port.

Removed SDL_FillRect() calls in OpenGL GUI drawing, since the extra
function calls are only slowing things down when we can access the
pixels directly.

Made return/enter key activate the currently selected button in the
ROM launcher instead of always starting a ROM.  This was confusing
when the 'Quit' button was highlighted and pressing enter started a
ROM.  Now pressing enter in such a case will actually do 'quit'.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@963 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-15 16:31:01 +00:00
markgrebe d06a92762b Fixed issue with encoding that appeared with OSX 10.4.4
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@962 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-15 02:12:09 +00:00
stephena ea105e6b0f This should fix the disappearing icon when switching video modes in Win32.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@961 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-14 23:55:23 +00:00
stephena ceac36923c Some fixes for 64-bit Linux. I just have to hear back from Mark wrt
the OSX port, and if it goes fine then dynamic OpenGL support will be done.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@960 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-14 23:50:43 +00:00
stephena 05c5225a6b A few minor fixes for Win32 and dynamic OpenGL. It seems the compilers
in Windows are a little more strict than Linux.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@959 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-14 22:29:34 +00:00
stephena 2c2b06226d Oops, forgot some configure stuff.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@958 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-14 21:45:22 +00:00
stephena b88d5ad3f6 First pass at dynamic OpenGL support. This means that OpenGL will no
longer be linked to the binary, but is opened at runtime.  This makes
automatic builds easier, so the nightly builds for Linux and Win32
should now support OpenGL.

Added 'gl_lib' commandline argument to change the OpenGL library to
use, but the defaults should work fine.

Everything works great in Linux; still TODO is test in Windows and OSX.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@957 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-14 21:36:29 +00:00
stephena 851d0356fe Hopefully this will fix the stella nightly automatic build failure.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@956 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-14 00:31:03 +00:00
stephena 53d70797d8 Phosphor effect now working for software render in 16/32 bit color modes;
still TODO for 24 bit mode.

I've benchmarked the CPU usage in Linux under 16/32 bit modes, and they're
within 1% of those for z26.  Not bad for C++ vs. assembly code :)  I still
need to test in Windows, which (ironically enough) tends to be slower than
Linux in graphics performance.

Note that CPU usage ranges from 6% (Linux/1x/software/phosphor/16bit) to
85% (Linux/3x/software/phosphor/32bit).  Using OpenGL, the usage is always
12%, whatever the zoom/color depth/phosphor.  I just love OpenGL ...


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@955 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-12 16:23:36 +00:00
stephena b4525b5ff7 Starting to convert software mode to use the phosphor effect; it's almost
completely broken right now.  I *really* hate software buffers.  Why
can't everyone have hardware support for zoom and color depth (aka OpenGL)?


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@954 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-11 20:28:07 +00:00
stephena 63275fc581 Remaining updates for phosphor settings for games that need it.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@953 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-11 15:17:39 +00:00
stephena d784073016 Added ability to dynamically toggle phosphor effect, bound to the Alt-p key.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@952 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-11 14:13:19 +00:00
stephena a70171b28c Fix for GP2x (hopefully), whereby the screen contents from previous
modes weren't being erased.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@951 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-11 13:25:20 +00:00
stephena 18d42e0b5d Added 'Display.Phosphor' toggleswitch to GameInfoDialog.
Cleaned up stella.pro wrt to 'Keypad' vs. 'Keyboard'.  The manual says
Keyboard, so that's what we use.

Added 'Display.Phosphor' property for many ROMs which require it (thanks
to the z26 database).  This means it will be automatically used for those
ROMs.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@950 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-11 01:17:11 +00:00
stephena 3ca571fdd8 More work on the phosphor effect. It's now configurable from the
commandline.  Two new CL arguments have been added (but these might change):
1) -pp <yes|no>: sets the new 'Display.Phoshor' property
2) -ppblend <0-100>: sets the amount to blend in phosphor mode

Note that if 'pp' isn't set, then it won't matter what 'ppblend' is set to,
since phosphor won't be used at all.  Some performance tweaks are still
required, and software mode isn't yet supported.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@949 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-10 20:37:00 +00:00
stephena cd0fe79454 Added hacky define code until I make phosphor more configurable.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@948 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-10 02:22:38 +00:00
stephena a4d5738767 First pass at adding the z26 'phosphor effect', which is used in 30Hz
ROMs to eliminate flicker.  Right now is disabled by default, and when
enabled only works in OpenGL mode.  It's not yet configurable either,
so it's either on or off.  It looks like crap on ROMs that don't need it,
but is really nice for those that do.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@947 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-10 02:09:34 +00:00
stephena 24aa8c782f Second pass at joystick hat support. It seems to be working fine in
emulation mode, but it's somewhat sensitive in GUI navigation (could
be my cheap gamepad).

Remapping is mostly complete, except for assignment of hats to analog
events.  Some more thought is required for this one.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@946 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-09 19:30:04 +00:00