summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/sdl
AgeCommit message (Collapse)AuthorFilesLines
2010-08-12Move memset6() declaration to string-extra.h, kills a warning compiling for ↵Thomas Martitz1-1/+1
android since it ships a memory.h. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27789 a1c6a512-1295-4272-9138-f99709370657
2010-07-15Don't duplicate byteswap code. Invent system where NEED_GENERIC_BYTESWAPS is ↵Nils Wallménius1-0/+3
set if the generic functions from system.h are needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27440 a1c6a512-1295-4272-9138-f99709370657
2010-07-10Fix red in app buildsThomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27375 a1c6a512-1295-4272-9138-f99709370657
2010-07-10SDL: fix typoRafaël Carré1-1/+1
BUTTON_LEFT is a rockbox define, we must use SDL_BUTTON_LEFT git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27367 a1c6a512-1295-4272-9138-f99709370657
2010-07-10SDL enhancements:Rafaël Carré3-99/+127
- remove infinite loop after exit() - make sure picture_surface is initialized, and free it - split gui_message_loop() in 3 functions and change prototype - some code is only used in simulator git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27366 a1c6a512-1295-4272-9138-f99709370657
2010-07-06Rockbox as an application: Add an 320x240 SDL application target.Thomas Martitz11-2/+346
It still works mostly like the simulator. There's also some minor left overs from the sim, but it does not define SIMULATOR. It installs into the current (build) dir, and you need to run it with '--root .' (because it looks for ./.rockbox and not ./simdisk/rockbox) as options. That's one of the few kludges left that should be resolved soon'ish. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27310 a1c6a512-1295-4272-9138-f99709370657
2010-07-04sim: add spdif_measure_frequency() stub for HAVE_SPDIF_INRafaël Carré1-0/+9
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27281 a1c6a512-1295-4272-9138-f99709370657
2010-07-04Simulator: build recording codeRafaël Carré1-4/+11
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27280 a1c6a512-1295-4272-9138-f99709370657
2010-06-17Switch iPod 3G to use EABI toolchain. Make necessary threading changes to ↵Michael Sevakis1-0/+5
avoid use of stack after switching to idle stack. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26898 a1c6a512-1295-4272-9138-f99709370657
2010-06-15SDL target: remove mouse polling and replace it with an event-based ↵Maurus Cuelenaere1-35/+31
mechanism, this makes touchscreen on the sim much smoother git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26860 a1c6a512-1295-4272-9138-f99709370657
2010-06-06Fix most reds, I have no idea what's wrong with the gigabeats (yet).Thomas Martitz1-1/+33
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26619 a1c6a512-1295-4272-9138-f99709370657
2010-06-06Move target-simulating specific keymaps out of button-sdl.c into a file perThomas Martitz1-1659/+11
keypad. Copyright is restored for each keymap according to git blame. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26615 a1c6a512-1295-4272-9138-f99709370657
2010-06-05Mini2440: Fix simulator. It's touchscreen so there's button clashes when ↵Thomas Martitz1-34/+1
trying to map the 6 hw buttons as well. Just remove that for now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26590 a1c6a512-1295-4272-9138-f99709370657
2010-05-27Simulator: get rid of SDL_mutex* parameter to sim_do_exit.Michael Sevakis3-14/+22
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26338 a1c6a512-1295-4272-9138-f99709370657
2010-05-27SDL Simulator: Get thread shutdown and properly handled and fix a minor ↵Michael Sevakis4-29/+90
memory leak that happens when threads exit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26336 a1c6a512-1295-4272-9138-f99709370657
2010-05-26UISimulator: cleaner startup using semaphore only to tell when event_thread ↵Michael Sevakis1-26/+11
is done initializing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26317 a1c6a512-1295-4272-9138-f99709370657
2010-05-26Since the sdl to target tree move, the main thread cannot be removed anymore,Thomas Martitz2-2/+6
since it's now the default thread which is implicitely created by starting the sim. This caused a segfault that r26283 tried to fix. Revert r26283 and protect the main thread from being removed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26315 a1c6a512-1295-4272-9138-f99709370657
2010-05-25sdl: call SDL_Quit() before exiting when receiving the SDL_QUIT event. It is ↵Amaury Pouly1-0/+1
necessary as the sdl tree move removed the atexit(SDL_Quit); git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26283 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Cleanup r26253 red and yellow.Michael Sevakis1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26254 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Make PCM->driver interface about as simple as it will get. Registered ↵Michael Sevakis1-16/+2
callback, zero data, alignment and stops are handled entirely inside pcm.c; driver merely calls fixed pcm.c callback. Remove pcm_record_more and do it just like playback; the original reason behind it isn't very practical in general. Everything checks out on supported targets. There wer some compat changes I can't check out on many unsupoorted but if there's a problem it will be a minor oops. Plugins become incompatible due to recording tweak-- full update. Sorted API. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26253 a1c6a512-1295-4272-9138-f99709370657
2010-05-18Rename sdl lcd initialization to (remote_)lcd_init_device which enables ↵Thomas Martitz5-9/+6
removing two #ifdef SIMULATOR and makes it happen as on target. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26137 a1c6a512-1295-4272-9138-f99709370657
2010-05-17A bit further cleanup in system-sdl.c.Thomas Martitz1-3/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26123 a1c6a512-1295-4272-9138-f99709370657
2010-05-17Fix another warning which strangely only occurs on cygwin.Thomas Martitz1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26121 a1c6a512-1295-4272-9138-f99709370657
2010-05-17Restore changes of r25809 that got lost in the target tree movement and fix ↵Thomas Martitz2-3/+8
simulator build on cygwin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26120 a1c6a512-1295-4272-9138-f99709370657
2010-05-17Fix FS#11280Thomas Martitz3-13/+73
SDL docs say SDL_PumpEvent (implicitely called by SDL_Poll/WaitEvent) may only be called from the thread that initializes the video subsystem, apparently because Windows requires that. So create an (or bring it back) SDL thread (with preemtive behavior) to read the event queue for buttons and initialize the video subsystem. I'd probably would have done that anyway because it enables an interrupt-like method to read them (no polling). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26113 a1c6a512-1295-4272-9138-f99709370657
2010-05-16memset is in string.h, not memory.h.Thomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26086 a1c6a512-1295-4272-9138-f99709370657
2010-05-16Fix building on cygwin.Thomas Martitz1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26076 a1c6a512-1295-4272-9138-f99709370657
2010-05-15Correct button_read_device prototype for HAVE_BUTTON_DATA.Thomas Martitz1-0/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26073 a1c6a512-1295-4272-9138-f99709370657
2010-05-15Fix last reds, database tool definitely needs rework.Thomas Martitz1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26072 a1c6a512-1295-4272-9138-f99709370657
2010-05-15- Move uisimulator/sdl/*.[ch] into the target tree, under ↵Thomas Martitz18-0/+4963
firmware/target/hosted/sdl, uisdl.c is split up across button-sdl.c and system-sdl.c. - Refactor the program startup. main() is now in main.c like on target, and the implicit application thread will now act as our main thread (previously a separate one was created for this in thread initialization). This is part of Rockbox as an application and is the first step to make an application port from the uisimulator. In a further step the sim bits from the sdl build will be separated out. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26065 a1c6a512-1295-4272-9138-f99709370657