Jens Arnold
6ed3ca7405
Make some more constants involved in right shifts unsigned to get rid of __ashrsi3 in the Player's core as well, saving some binsize.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19409 a1c6a512-1295-4272-9138-f99709370657
2008-12-12 22:19:42 +00:00
Andrew Mahone
781421afa2
resize-on-load for bitmap files on 2bpp and color targets
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19374 a1c6a512-1295-4272-9138-f99709370657
2008-12-09 23:07:59 +00:00
Jonas Häggqvist
a13c162719
Compile the WPS debug functions for the sim, to make --debugwps work.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19371 a1c6a512-1295-4272-9138-f99709370657
2008-12-09 18:15:19 +00:00
Björn Stenberg
66459fee3d
Fix red player build
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19362 a1c6a512-1295-4272-9138-f99709370657
2008-12-08 08:32:30 +00:00
Daniel Stenberg
43f238f6dc
fix "warning: comparison between signed and unsigned"
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19359 a1c6a512-1295-4272-9138-f99709370657
2008-12-07 18:43:27 +00:00
Antoine Cellerier
8289b966b8
Apply FS#9368 : add generic settings tag to WPS.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19357 a1c6a512-1295-4272-9138-f99709370657
2008-12-07 16:20:35 +00:00
Jonathan Gordon
8fb25b7c3e
Fix FS#8998 - statusbar in plugin menus was sometimes a different colour.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19254 a1c6a512-1295-4272-9138-f99709370657
2008-11-28 03:10:35 +00:00
Björn Stenberg
ad8d6031c1
Added support for configurable rockbox directory. FS#9567 by Alex Bennee.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19208 a1c6a512-1295-4272-9138-f99709370657
2008-11-24 22:16:07 +00:00
Jonathan Gordon
0394ebe44d
FS#9557 - fix the %mv and %t timeout so its intrepreted correctly
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19177 a1c6a512-1295-4272-9138-f99709370657
2008-11-22 10:31:33 +00:00
Dave Chapman
29d9fadae9
Add the required #include for the HZ define - fixes compilation of checkwps broken by r18773
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19113 a1c6a512-1295-4272-9138-f99709370657
2008-11-16 10:32:44 +00:00
Jonathan Gordon
c41bd04722
revert the previous commit to find a nice way to fix the yellow...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19111 a1c6a512-1295-4272-9138-f99709370657
2008-11-16 09:56:38 +00:00
Jonathan Gordon
76d2dd9c0e
FS#9477 - new WPS tag (%mo) which lets the WPS have different "modes" which are changed with the usual "back to browser" button (This button is ONLY stolen if the WPS you use uses this tag.
...
an example use:
%?mo<one|two|three>
meaning that when the WPS is first opened "one" will be displayed, pressing select will change it to showing two, pressing it again will show three, and once more will go back to showing one. The text there could be any wps tags (conditional viewports for example...)
There is no real limit on the amount of modes, but remember that if you create a WPS which uses this tag more than once that every use HAS to have the same amount of choices or bad things will happen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19110 a1c6a512-1295-4272-9138-f99709370657
2008-11-16 09:38:15 +00:00
Jonathan Gordon
a22749b5c6
FS#9525 - The list for the quickscreen items chooser turned out to not really be usable so try this instead.
...
Settings in the menus will now have a context menu where you can reset the setting and if its OK to put it on the quickscreen there will be options there to put it on it.
Also, ban last.fm and cuesheet support settings from the QS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19013 a1c6a512-1295-4272-9138-f99709370657
2008-11-05 09:30:20 +00:00
Bertrik Sikken
03be50a1ef
Make local functions static
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18995 a1c6a512-1295-4272-9138-f99709370657
2008-11-03 22:26:32 +00:00
Björn Stenberg
ac488f8cb7
Makefile overhaul. All generated bitmaps are now explicitly in OBJDIR/bitmaps and OBJDIR/pluginbitmaps, and plugins properly depend on their respective bitmap files. Fixes #6847 .
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18987 a1c6a512-1295-4272-9138-f99709370657
2008-11-03 14:37:50 +00:00
Jonathan Gordon
edcacaa787
FS#9515 - customisable quickscreen. Allows you to choose which setting you want displayed on the quickscreen.
...
Allows almost every available setting. (change the options in settings > general settings > quickscreen items)
Not every setting will work perfectly, some might need aditional handling if the change doesnt take effect straight away (let us know which are problematic so they can be fixed)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18984 a1c6a512-1295-4272-9138-f99709370657
2008-11-03 11:11:07 +00:00
Frank Gevaerts
2f8a0081c6
Apply FS#9500. This adds a storage_*() abstraction to replace ata_*(). To do that, it also introduces sd_*, nand_*, and mmc_*.
...
This should be a good first step to allow multi-driver targets, like the Elio (ATA/SD), or the D2 (NAND/SD).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18960 a1c6a512-1295-4272-9138-f99709370657
2008-11-01 16:14:28 +00:00
Jonathan Gordon
6144a92b69
rearrange the order that the quickscreen wiewports are allocated.
...
The Icon viewport in the center will use as much width as there is room, and should never shrink so that there isnt room for the 2 arrows.
Doing it this way makes sure the arrows stay with the text instead of being stuck in the middle of the screen (which seems to happen mostly on portrait LCD's with the old version)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18943 a1c6a512-1295-4272-9138-f99709370657
2008-10-31 04:58:33 +00:00
Dave Chapman
a42602b350
Don't accept 0 for the width or height of a progress bar in the %pb tag. A zero width causes a divide by zero, and a zero height simply doesn't make any sense, so we assume it was a mistake.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18863 a1c6a512-1295-4272-9138-f99709370657
2008-10-22 21:35:38 +00:00
Jonathan Gordon
71898e5c54
Accept FS#9480 - centralise and organise the events in the apps/ layer.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18819 a1c6a512-1295-4272-9138-f99709370657
2008-10-16 10:38:03 +00:00
Björn Stenberg
51b45d5602
Split id3.c/h into metadata.c/h and metadata/mp3.c. Updated all references. Moved mp3data.c/h from firmware to apps.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18814 a1c6a512-1295-4272-9138-f99709370657
2008-10-15 06:38:51 +00:00
Magnus Holmgren
9c52c39528
Make some dependencies on id3.h explicit.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18810 a1c6a512-1295-4272-9138-f99709370657
2008-10-14 18:40:52 +00:00
Björn Stenberg
9cf024c5a8
Red build fix: Moved PCM #defines from pcm_record.h to pcm.h. Added necessary #includes to statusbar.c and s1a0903x01.c.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18808 a1c6a512-1295-4272-9138-f99709370657
2008-10-14 11:43:32 +00:00
Nils Wallménius
68f6e83eb0
Alternate fix for the bug fixed by FS#9163, the selection in the playlist viewer was one line too low, which caused it to be off-screen if the last item was selected. The cause was that the selected item was set before the list title, fixed by re-calculating the position of the selected item after setting the title.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18797 a1c6a512-1295-4272-9138-f99709370657
2008-10-13 12:16:06 +00:00
Jonathan Gordon
8703cca459
Fix FS#9479 - "readonly" lists sometimes wrap when they shouldnt. part of the fix forced it to disable wrapping for these lists..
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18778 a1c6a512-1295-4272-9138-f99709370657
2008-10-12 10:21:44 +00:00
Jonathan Gordon
61c6526013
* Make %t stricter by aborting if a value is not given.
...
* Move the default value for %mv back into wps_parser.c where it belongs
* Add the debug line for the %mv tag
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18773 a1c6a512-1295-4272-9138-f99709370657
2008-10-11 13:49:38 +00:00
Jonathan Gordon
85600e629b
update the %mv wps tag to let you specify how long it should wait after being released to go back to false.
...
e.g %mv2 will stay true for 2 seconds or %mv3.5 is 3.5 seconds (same as the %t syntax)... if no number is specified it defaults to 1 second
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18769 a1c6a512-1295-4272-9138-f99709370657
2008-10-11 12:20:09 +00:00
Jonathan Gordon
98fa3913f9
change the %mv timeout to 1s which works better, also change the string to show "v" instead of .:| if its not used as a conditional
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18759 a1c6a512-1295-4272-9138-f99709370657
2008-10-09 23:15:16 +00:00
Jonathan Gordon
486869693c
FS#9460 - Add a tag %mv which can be used to check if the volume button is being pressed (e.g %?mv<yes|no> ). It will stay true after its released for a little over half a second (not configurable unless someone comes up with a nice way to add a parameter to the tag? 1s is too long and .5s is too short...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18752 a1c6a512-1295-4272-9138-f99709370657
2008-10-09 11:10:26 +00:00
Jonathan Gordon
e8f7ad1b28
yes... i'm just trying to boost my ohloh score!
...
(also minor code policing again)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18716 a1c6a512-1295-4272-9138-f99709370657
2008-10-05 13:45:21 +00:00
Jonathan Gordon
6a81923e6e
bit of code police
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18715 a1c6a512-1295-4272-9138-f99709370657
2008-10-05 13:13:55 +00:00
Jonathan Gordon
1da2f0112e
Accept FS#9231 - viewportify the pitch screen by Thomas Martitz.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18714 a1c6a512-1295-4272-9138-f99709370657
2008-10-05 13:01:54 +00:00
Jonathan Gordon
2438d7881a
redo the previous commit so its actually useful.
...
if the callback returns ACTION_STD_CANCEL when the user presses ACTION_STD_OK the simple list will exit and set the selection. Otherwise, when ACTION_STD_CANCEL happens the selection will be set to -1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18641 a1c6a512-1295-4272-9138-f99709370657
2008-09-25 08:12:25 +00:00
Jonathan Gordon
67df5f2434
have the info lists set the selection before they are exited, this is sometimes needed by the caller
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18640 a1c6a512-1295-4272-9138-f99709370657
2008-09-25 07:56:34 +00:00
Nils Wallménius
93a87685c3
Clean up use of snprintf where strncpy if suited, avoid useless copying of constant strings for wps token evaluator, minor const police too.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18625 a1c6a512-1295-4272-9138-f99709370657
2008-09-24 20:03:53 +00:00
Peter D'Hoye
3d0f01c0f7
fix red
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18442 a1c6a512-1295-4272-9138-f99709370657
2008-09-07 20:22:47 +00:00
Peter D'Hoye
3c1e9ca558
Change screens memebers char_width, char_height and nb_lines to functions returning a calculated value. Fixes FS #9361 because the values were calculated based on sysfont, not the user selected font.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18441 a1c6a512-1295-4272-9138-f99709370657
2008-09-07 20:09:11 +00:00
Nicolas Pennequin
7b514ffc68
A few comment updates and trailing spaces removals.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18433 a1c6a512-1295-4272-9138-f99709370657
2008-09-06 14:56:02 +00:00
Nicolas Pennequin
e0646947c9
Make %mm 0-based again (as described in CustomWPS), and change %cf accordingly.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18421 a1c6a512-1295-4272-9138-f99709370657
2008-09-04 22:08:03 +00:00
Nicolas Pennequin
939459e10e
Fix the bug reported in FS#9350: the WPS would crash on %mm or %cf if they weren't in conditionals.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18420 a1c6a512-1295-4272-9138-f99709370657
2008-09-04 21:57:01 +00:00
Frank Gevaerts
5d22e3cbdd
Add wpseditor, the Google Summer of Code 2008 project of Rostislav Chekan. Closes FS#9327
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18362 a1c6a512-1295-4272-9138-f99709370657
2008-08-29 21:08:38 +00:00
Maurus Cuelenaere
1392dc2144
Commit FS#9308: differentiate between TOUCHPAD & TOUCHSCREEN
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18338 a1c6a512-1295-4272-9138-f99709370657
2008-08-23 09:46:38 +00:00
Stéphane Doyon
58808b6216
Skip length: restore the ability to skip by just a few seconds
...
(which was the point of that feature).
See r18041.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18310 a1c6a512-1295-4272-9138-f99709370657
2008-08-18 01:03:07 +00:00
Stéphane Doyon
50512d696d
Fix for issues in speaking the time in Rockbox Info screen (B#9167).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18309 a1c6a512-1295-4272-9138-f99709370657
2008-08-18 00:58:47 +00:00
Nils Wallménius
01729e7a18
FS#9281 Rename of splash functions.
...
* Remove gui_splash()
* Rename gui_syncsplash() to splashf() and remove its voice
capabilities.
* Rename the internal splash() to splash_internal() and introduce an
externally visible splash() that handles simple splashing without
printf functionality e.g. splash(HZ, ID2P(LANG_FOO)); or splash(HZ,
"foo"); if a LANG_* id is passed it will be voiced.
* Adjust all places that called gui_syncsplash() to use the correct
variant from above.
* Export both new functions to plugins and adjust places calling
rb->splash() to use the correct variant so that we now have naming
consistency between the core and plugins.
* Fix one latent bug that would cause my sim to crash with the above
changes and correct P2STR and P2ID macros, thanks to pondlife.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18282 a1c6a512-1295-4272-9138-f99709370657
2008-08-15 08:27:39 +00:00
Bertrik Sikken
05945074d1
Fix FS#8689 (the peak meter does not work during a playing after a recording not followed by a reboot) by applying the patch from FS#9227.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18249 a1c6a512-1295-4272-9138-f99709370657
2008-08-11 22:12:40 +00:00
Bertrik Sikken
a11f656d68
Apply fix for FS#9203 (WPS gets corrupted after changing status bar setting) by Thomas Schott
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18192 a1c6a512-1295-4272-9138-f99709370657
2008-08-04 17:45:39 +00:00
Dominik Riebeling
02103a2fa7
Unify opening of utf-8 files (FS#6203). This also adds ignoring the BOM in several places it has been missing (as FS#6071).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18185 a1c6a512-1295-4272-9138-f99709370657
2008-08-02 20:39:03 +00:00
Bertrik Sikken
5356e6205b
Simplified function option_screen
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18083 a1c6a512-1295-4272-9138-f99709370657
2008-07-17 13:04:11 +00:00
Jonathan Gordon
d3cb2aca44
dont show the "cancelled" splash if the setting wasnt changed (only affects settings which have the F_TEMPVAR flag set)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18047 a1c6a512-1295-4272-9138-f99709370657
2008-07-15 14:25:16 +00:00