Commit graph

14656 commits

Author SHA1 Message Date
Thomas Martitz
93a4b32d03 test_codec/test_fps: Use pluginlib_touchscreen API to make them fit for touchscreen including point mode.
Enable test_fps on RaaA also.

Change-Id: Ifeb60d5ad30bde1f8a645cd9e9d5d5ae34f4425d
2012-01-27 09:15:05 +01:00
Thomas Martitz
049f3c782a test_touchscreen.rock: Add keymap for sdl and android.
Change-Id: Ie56414c1a025bd786bf9e6edce1c09e6626f9f4a
2012-01-27 09:15:05 +01:00
Thomas Martitz
aba5c47dd6 pluginlib_touchscreen: Rework API to offer wait-for-button APIs.
The old touchscreen_get() needed an external button_get() call. Now two APIs are
added that do this call internally. This way they behave similar to get_action.

The old API is preserved (but renamed) since it's used in reversi.

Change-Id: I24902c64a357f2fdd7d0c2f5371cbfd20f34f1c8
2012-01-27 09:15:05 +01:00
Thomas Martitz
7c623d577b Use PLA in boomshine.lua instead of the awkward kbd_input context. This enables it on RaaA.
Change-Id: I616bb39c1e785e39e9369d2ccef45477911bb5a3
2012-01-27 09:15:05 +01:00
Thomas Martitz
c406f94592 Lua: Add pluginlib_actions wrapper for lua scripts.
Scripts can now make use of PLA_* actions to be more target independant.

Change-Id: I1b9f69e07f41b2187ecc1bad25a2c20eaaef92b4
2012-01-27 09:15:05 +01:00
Thomas Martitz
6eeca7096d PLA: Add map for android. Directional keys not available in point mode due to
touchscreen.

Fix cowond2 select repeat at the same time.

Change-Id: I3ee0c2a3fdc74978c159335949c183d36d5d29af
2012-01-27 09:15:05 +01:00
Thomas Martitz
7013d0c48d application: Enable chipper and fft plugins.
They force grid mode but don't need graphics so good enough for now.

Change-Id: I711a1a22f1866ed25196614f343ab51967bf3a4b
2012-01-27 09:15:05 +01:00
Thomas Martitz
fab7264b3b Force settings touchscreen mode in menus.
Plugins revert to grid mode currently. If they create a list the list ends
up in grid mode as well even if they use point mode due to settings in the core.
The expectation is that the lists use whatever mode they also use in the core.

Force setting in menu to have them behave the same in core and plugins.

Change-Id: I9534b2f21ccfa920eb2e48f66b04ecbda7a59011
2012-01-27 09:15:05 +01:00
Thomas Martitz
b8439f2aea Add touchscreen_get_mode() to plugin and lua.
Change-Id: I44b8693c689da00f57c14622f4ba3dc554dbbfc9
2012-01-27 09:15:05 +01:00
Joshua Simmons
1230a45a65 goban plugin: hoshi locations for more board sizes
Hoshi locations were hardcoded and only for board sizes 9, 13 and 19.

This new way has identical results for those board sizes, but
also places hoshi on other size boards.

There are no real standards for where hoshi should go on boards other
than 9, 13 and 19, but I think the results obtained are aesthetically
pleasing (and certainly better than not having any hoshi at all).

Change-Id: I08e449f17d782d212d5b1e16ebd7df52aec9ffb9
Reviewed-on: http://gerrit.rockbox.org/68
Reviewed-by: Björn Stenberg <bjorn@haxx.se>
Reviewed-by: Frank Gevaerts <frank@gevaerts.be>
2012-01-26 13:08:07 +01:00
Thomas Martitz
feef422b7c Improve/unify German translation.
Change-Id: I9603acfe75d694a6533df3b7bdb490fad1a0b4e9
2012-01-25 23:01:00 +01:00
Thomas Martitz
8a43603975 Fix flag for the viewport. Text is supposed to be centered.
Change-Id: I8b29787fb99e0469c9e4a0b0ea08e61d3ff92589
2012-01-23 01:08:11 +01:00
Jonathan Gordon
8a3af26364 skin touchregions: fix the 'none' region firing when it shouldnt.
Change the none action return value so the various action layers don't get confused by ACTION_TOUCHSCREEN return codes which shouldn't be happening (i.e when a long press region overlaps a short press region whihc has the none action)

Change-Id: I63db2c0b49597ada2c5ebd0ef98e99aeef4f522a
2012-01-23 07:42:28 +11:00
Frank Gevaerts
7efbd632c2 Fix wrong pointer arithmetic in the PDbox aiff header writing code
The SSND bit is intended to be right after the t_aiff-sized header.
Someone got cast vs + precedence rules wrong here.

Change-Id: Iccec75043ed5e35724331f9833b24f7e3b90c447
2012-01-22 21:41:38 +01:00
Thomas Martitz
74c8746595 Don't filter out -O for sims.
It's not useful as it means we test code at a different -O level than
we run it at.
Fixes build errors caused by gcc 4.3. Fix some warnings
the change would introduce as well.

Change-Id: Id9ff31dc08694b0bfc5272f5e690c41f7918ed22
2012-01-22 20:33:37 +01:00
Thomas Martitz
a5f7f6e4bb Use ARCH instead of CPU for selecting optimization levels.
This way it works for sim/application too.

Change-Id: I27aa7ce9971e7cb4521106a4f8b37d02503d9d09
2012-01-22 18:46:45 +01:00
Thomas Martitz
a0d54b09a6 libspeex: Get rid of some bad trickery with the stack pointer.
Using the stack pointer for anything else than pointing to the
current stack can have in very bad effects, especially on hosted
platforms (e.g. when mixed with signals). Remove this at a
neglible performance cost.

Change-Id: I9545d701bd13c32456c224b87c708d907880c0ff
2012-01-21 18:39:19 +01:00
Thomas Martitz
6d19275876 Hosted: Output map files after linking.
Change-Id: I5ac64d781aaa1aa2b3157589f8e689c0d946a39f
2012-01-21 18:39:19 +01:00
Thomas Martitz
cf333a61c7 Move supprt-arm.S to separate library.
Core, codecs and plugins link it separately so this gets rid of SOURCES trickery.
Don't build it for hosted targets.

Change-Id: If15ef90e93cd218a4352ae8e89eea95d3122452f
2012-01-21 18:39:19 +01:00
Thomas Martitz
4343011955 libmad: Get rid of some bad trickery with the stack pointer.
Using the stack pointer for anything else than pointing to the
current stack can have in very bad effects, especially on hosted
platforms (e.g. when mixed with signals). Remove this at
very slight performance cost.
2012-01-21 18:39:19 +01:00
Thomas Martitz
cdb28789ec libmad: Fix section attrs for hosted platforms. 2012-01-21 18:39:19 +01:00
Michael Sevakis
c7f3a0b360 Neaten up pcmbuf a bit with regards to differences determined by MEMORYSIZE.
Change-Id: Ie7ba930e3331fd48186c245bd8a30731017d688e
2012-01-20 18:10:12 -05:00
Marek Salaba
05bba5e111 FS#12553 - Second January update of Czech language
Signed-off-by: Bertrik Sikken <bertrik@sikken.nl>

Change-Id: I915d3158ab21a0ab130560137c739b9541b09e36
2012-01-20 20:33:52 +01:00
Marek Salaba
007f61fa31 FS#12545 - January update of Czech language
Signed-off-by: Bertrik Sikken <bertrik@sikken.nl>

Change-Id: Ied8f43ed9b9008d05eb8869f00a5fa1bd6dd858b
2012-01-19 18:45:21 +01:00
Jean-Louis Biasini
7f26a10d31 fuzeplus: update plugins keymaps (FS#12405)
Signed-off-by: Amaury Pouly <amaury.pouly@gmail.com>

Change-Id: Ib94cec07c80892eb50471c87b83e2701911ea0d7
2012-01-15 02:29:30 +01:00
Jonathan Gordon
c2f0ba7ecd fix compiler error, missed action.h
Change-Id: Idc6d59835d1fd20cb4828543547b6d8b6f74053b
2012-01-15 00:56:56 +11:00
Michael Sevakis
b17bdb9349 tdspeed: Use "INT64_MAX" instead of "~(1ll << 63)" to get the maximum int64_t value.
Change-Id: I0830b3276eecb52e0f52599126fd23f95d0742aa
2012-01-13 17:54:43 -05:00
Michael Sevakis
e4a5762147 tdspeed: Tweak source and autocorrelation
C99-ify variables to keep them localized
Use sum of absolute differences instead of sum of squared differences for
autocorrelation which should reach the same conclusion and avoid 64-bit
multiplication.

Change-Id: If4f3715a36225420db3b05e9814b81766d04f0f3
2012-01-13 17:14:47 -05:00
Jonathan Gordon
eb2ea7f9ad keyclick: Add a callback so screens can cancel a click. Add a generic list callback to stop clicks when we are at the end of the list
Change-Id: Iabb44a861dd7506cd883c1bdb0241303fa646746
2012-01-12 22:28:36 +11:00
Michael Chicoine
cfccd57dcb US English language update
Change-Id: Idb6ce02716887d70aee65f9266f17875cab84158
2012-01-10 09:26:06 -06:00
Ophir Lojkine
1313396cab FS#12392: french translation update
Change-Id: I370e2c1ccd4b0c1120079e46662573e7f3762dc6
Signed-off-by: Rafaël Carré <funman@videolan.org>
2012-01-10 03:05:21 -05:00
Frank Niggemann
83b0ec3919 FS#12515: update german translation
duplicate of FS#12433
duplicate of FS#12456
duplicate of FS#12386
duplicate of FS#12342
Signed-off-by: Rafaël Carré <funman@videolan.org>

Change-Id: If69d5fdb3a969d3c2c04df62ce841185f2864326
2012-01-10 00:20:28 -05:00
Peter Lecky
e4af358e0b FS#12516 - Slovak lang update
Change-Id: I4bca90cd3d757ff37f616f47c41dd78537db6a80
Signed-off-by: Rafaël Carré <funman@videolan.org>
2012-01-10 00:06:02 -05:00
Bertrik Sikken
f4def1cf0f FS#12511 - Polish translation by Artur Juraszek
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31646 a1c6a512-1295-4272-9138-f99709370657
2012-01-09 21:19:14 +00:00
Michael Giacomelli
36613d57fa Commit FS#12454 - Faster line scroll speed by Martin Sagmuller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31643 a1c6a512-1295-4272-9138-f99709370657
2012-01-09 03:26:03 +00:00
Bertrik Sikken
2ab3f336c7 FS#12406 - Updated Galician translation by Ismael Castiñeira Álvarez
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31632 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 10:31:29 +00:00
Bertrik Sikken
02a270ce2e sudoku: make local functions static and add missing #include
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31631 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 08:55:25 +00:00
Rafaël Carré
90736a4055 fix cpp condition
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31628 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 01:51:51 +00:00
Rafaël Carré
8552824284 ascodec-target.h: remove
move prototypes to ascodec.h
move code to ascodec*.c

YPR0: use adc-as3514.c instead of duplicating it

TODO: merge as3514.h and ascodec.h ?

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31626 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 01:43:16 +00:00
Rafaël Carré
b612263b1e apps: lcd-remote.h is not needed if HAVE_REMOTE_LCD is not defined
Fix a comment

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31608 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 19:35:46 +00:00
Rafaël Carré
6ab12df153 Only need lcd-remote.h if HAVE_REMOTE_LCD is defined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31606 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 19:18:25 +00:00
Amaury Pouly
fdf574adb4 fuze+: Update plugin keymaps (FS#12405). Thanks to Jean-Louis Biasini
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31598 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 18:00:55 +00:00
Magnus Holmgren
fd5524ff92 AAC/M4A: Playback time wrapped after 2 hours and 42 minutes. Increase the wrap limit to about 27 hours.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31581 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 20:33:34 +00:00
Rafaël Carré
1280569106 missing parens
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31576 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 07:48:52 +00:00
Rafaël Carré
127af53c5b debug_menu.c: cleanup
use c99 for()
cosmetics
remove the_menu_item struct -> merge with only use
merge variables declaration/assignement

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31575 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 07:42:03 +00:00
Rafaël Carré
02c79d37a3 dbg_pcf(): use action_userabort
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31561 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 06:21:16 +00:00
Rafaël Carré
ec398340cd dbg_ports() : move proto to system.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31557 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 05:21:44 +00:00
Rafaël Carré
af7606776a dbg_partitions: make static
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31556 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 05:21:31 +00:00
Rafaël Carré
925dacf96d *frequency_linux(): factorize
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31555 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 00:34:02 +00:00
Thomas Martitz
c1bd9b0361 Rework powermgmt to enable code re-use on appliation and sims.
* Introduce CONFIG_BATTERY_MEASURE define, to allow targets (application)
to break powermgmt.c's assumption about the ability to read battery voltage.
There's now additionally percentage (android) and remaining time measure
(maemo). No measure at all also works (sdl app). If voltage can't be measured,
then battery_level() is king and it'll be used for power_history and runtime
estimation.

* Implement target's API in the simulator, i.e. _battery_voltage(), so it
doesn't need to implement it's own powermgmt.c and other stubs. Now
the sim behaves much more like a native target, although it still
changes the simulated battery voltage quickly,

* Other changes include include renaming battery_adc_voltage() to
_battery_voltage(), for consistency with the new target functions and
making some of the apps code aware that voltage and runtime estimation
is not always available.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31548 a1c6a512-1295-4272-9138-f99709370657
2012-01-03 23:44:38 +00:00