Commit graph

1644 commits

Author SHA1 Message Date
Ilari Liusvaara
4b1815deb2 Portaudio support for sound 2011-10-28 23:25:42 +03:00
Ilari Liusvaara
ea562b3aa3 Rework how graphics/sound/joystick is built in makefile 2011-10-28 22:25:07 +03:00
Ilari Liusvaara
338c6efd14 Add command to show plugins in use 2011-10-28 21:01:29 +03:00
Ilari Liusvaara
97c187acb9 Add dummy enable-sound command to sound-dummy 2011-10-28 20:39:20 +03:00
Ilari Liusvaara
f27fb5801f Split platform sound and graphics parts
This is in preparation for supporting sound-only APIs like portaudio,
OpenAL and such.
2011-10-28 20:26:40 +03:00
Ilari Liusvaara
47ca48e166 SDUMP support
This is useful for dumping to high-precision YUV.Note that this code
is very preliminary and thus probably very buggy.
2011-10-27 05:08:46 +03:00
Ilari Liusvaara
052d7eb95d Add makefile option to override Lua package name.
This is e.g. handy on building against Lua from MacPorts (which is named
"lua").
2011-10-25 11:00:14 +03:00
Ilari Liusvaara
e5b743a62a Reformat the flags display (adding new flags for hires and interlace) 2011-10-23 14:06:53 +03:00
Ilari Liusvaara
a8d20f606d Change the RTC time format 2011-10-22 22:58:04 +03:00
Ilari Liusvaara
a474f1000d New Lua function: gui.status() 2011-10-22 18:45:33 +03:00
Ilari Liusvaara
419a8346d6 Image data is 24-bit, not 15-bit 2011-10-22 18:35:13 +03:00
Ilari Liusvaara
418293d27a Add errata entry about slow screen drawing 2011-10-22 16:24:57 +03:00
Ilari Liusvaara
a1f8869f94 Add Lua function gui.circle() 2011-10-22 15:15:18 +03:00
Ilari Liusvaara
92cc0b0d89 Add new Lua function gui.line() 2011-10-22 12:25:37 +03:00
Ilari Liusvaara
feea8e41cc lsnes rr0-β17 2011-10-21 15:19:24 +03:00
Ilari Liusvaara
b8c426662b Change color notation to allow Lua scripts use full truecolor 2011-10-21 13:54:47 +03:00
Ilari Liusvaara
7e924d9c83 Be ready if some clown decides to change core frequencies 2011-10-20 17:42:29 +03:00
Ilari Liusvaara
78ea0a9d88 Use C++11 isms new in G++ 4.6. 2011-10-19 19:25:31 +03:00
Ilari Liusvaara
e28c2046e0 Fix all sorts of color fsckups from 16bit to 32bit change 2011-10-19 19:01:13 +03:00
Ilari Liusvaara
58d823d373 Cursor should be white, not usually yellow 2011-10-19 18:26:50 +03:00
Ilari Liusvaara
869cee64bc Fix wrong offsets in SDL code
This is fallout from 16 to 32 bit change.
2011-10-19 18:24:35 +03:00
Ilari Liusvaara
5abde22e85 New Lua function gui.color 2011-10-19 18:16:34 +03:00
Ilari Liusvaara
2ac0ca2413 Switch back to 32-bit colors
Now that bsnes core supports luma, 32-bit colors are needed to properly
reproduce the colors.
2011-10-19 13:59:54 +03:00
Ilari Liusvaara
dc977fbcee Bump minimum bsnes version to v083.
This also bumps the compiler version to GCC 4.6.
2011-10-14 15:05:13 +03:00
Ilari Liusvaara
aedbba61ef Allow unattended dumping to JMD 2011-10-12 03:41:54 +03:00
Ilari Liusvaara
65f5f37033 JMD dumping support 2011-10-12 03:29:52 +03:00
Ilari Liusvaara
2993d6d793 lsnes rr0-β16 2011-10-10 08:28:30 +03:00
Ilari Liusvaara
deab9b5c0d Fix CSCD output
- Don't leak memory
- Actually write proper value for clr_important in video strf
- Don't write outside buffer when writing avih
- end() runs in main context, so it must use request_flush_buffers,
and not flush_buffers.
2011-10-09 23:04:52 +03:00
Ilari Liusvaara
fb93a4e888 Add gui.screenshot Lua function. 2011-10-09 02:55:36 +03:00
Ilari Liusvaara
cb4daf66e6 Fix drawing SDL area boundaries
When not in console mode, the code used 2 instead of screen height + 12
for minimum y coordinate for message are.
2011-10-08 23:21:19 +03:00
Ilari Liusvaara
94b6b3aae8 Fix scaling compensation in mouse clicking
The scaling compensation in mouse clicking could have been wrong. Fix
it to be always right. Also put the code to determine screen scale factors
to one place.
2011-10-08 23:02:47 +03:00
Ilari Liusvaara
b972df809a lsnes rr0-β15 2011-10-05 19:26:53 +03:00
Ilari Liusvaara
949441c12b Refactor current controls code from mainloop.cpp to controller.cpp 2011-10-05 02:24:34 +03:00
Ilari Liusvaara
95b0df8a8b Changes to how read-only works
* Add command that loads savestate in current mode.
* Make jukebox loads use current mode.
* Fix truncation of movie when current_frame = 0
* Add command to set read-only mode
* Add command to toggle read-only mode
2011-10-03 22:32:43 +03:00
Ilari Liusvaara
3517ba2eee Move joystick axis manipulation from SDL to keymapper code
Joystick axis manipulation isn't really platform-dependent, so move it
from SDL platform code to keymapper code. Additionally, add command to
show all axes and parameters.
2011-10-02 22:40:58 +03:00
Ilari Liusvaara
bdd0a17bef All supported platforms support gettimeofday and usleep
Move to using gettimeofday and usleep instead of SDL time and delay
functions.
2011-10-02 19:05:45 +03:00
Ilari Liusvaara
9f174b2932 Some manual fixups 2011-10-01 21:03:32 +03:00
Ilari Liusvaara
38eec45987 Fix interaction of * and + in commands 2011-10-01 20:47:59 +03:00
Ilari Liusvaara
7a0085290a lsnes rr0-β14 2011-10-01 13:05:03 +03:00
Ilari Liusvaara
0606cdaa60 Switch to CSCD implementation from JPC-RR streamtools 2011-09-30 02:58:34 +03:00
Ilari Liusvaara
ff77bad25c New gui primitive: crosshair 2011-09-28 00:14:27 +03:00
Ilari Liusvaara
7c0a2bc697 Refactor rectangle clipping calculation 2011-09-28 00:14:09 +03:00
Ilari Liusvaara
ae731333cd Refactor gui.text, gui.rectangle and gui.pixel 2011-09-27 02:52:35 +03:00
Ilari Liusvaara
b73ef078ba Implement gui.rectangle and gui.pixel 2011-09-27 00:29:44 +03:00
Ilari Liusvaara
99468dc616 Switch internally to 16-bit graphics instead of 32-bit 2011-09-26 23:35:13 +03:00
Ilari Liusvaara
9c3cdb57c5 Remove some unused defines 2011-09-26 19:09:37 +03:00
Ilari Liusvaara
f2550aebd5 Function comment cleanups 2011-09-26 19:02:43 +03:00
Ilari Liusvaara
4a6b80931b Merge remote-tracking branch 'origin/master' 2011-09-25 23:16:19 +03:00
Ilari Liusvaara
ecf559b0ad Remove delayed reset support
Delayed reset code is just plain too buggy. This feature will return if
I figure out how to do it properly.
2011-09-25 23:15:27 +03:00
Ilari Liusvaara
891ebc7795 Use SDLMain on Mac OS X
It turns out SDLMain must be used on Mac OS X or SDL won't work.
2011-09-25 12:31:16 +03:00