Commit graph

164 commits

Author SHA1 Message Date
Andree Buschmann
96b21753bc Fix some residual 'defined but not used' warnings by GCC 4.6.0 for touchscreen targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29910 a1c6a512-1295-4272-9138-f99709370657
2011-05-22 13:53:31 +00:00
Thomas Jarosch
f9f89cf5cb RaaA: Fix write locations of plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29506 a1c6a512-1295-4272-9138-f99709370657
2011-03-02 23:43:54 +00:00
Teruaki Kawashima
01313d5039 * Rename backlight_force_on to backlight_ignore_timeout to make it clear what the function does.
* Add backlight_force_on() which forces to turn on backlight even when the setting is set to Off. use this in lamp.
No functional change except lamp.
See aslo FS#9883.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29128 a1c6a512-1295-4272-9138-f99709370657
2011-01-24 12:29:16 +00:00
Marcin Bukat
dd61702fb0 HD300 - plugins keymaps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28712 a1c6a512-1295-4272-9138-f99709370657
2010-11-30 10:52:14 +00:00
Robert Menes
63f68b482a Still coming along with HDD6330 plugin keymaps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28466 a1c6a512-1295-4272-9138-f99709370657
2010-11-02 23:18:41 +00:00
Marcin Bukat
59ba8fea22 MPIO HD200: rename button defines to adhere how they are labeled on the device.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28443 a1c6a512-1295-4272-9138-f99709370657
2010-11-02 10:44:34 +00:00
Rafaël Carré
ab9fd1840b plugins: use lcd_putsf/lcd_putsxyf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 21:46:45 +00:00
Thomas Martitz
cae4ae2c71 Second try: Introduce plugin_crt0.c that every plugin links.
It handles exit() properly, calling the handler also when the plugin returns
normally (also make exit() more standard compliant while at it).
It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore.

To work better together with callbacks passed to rb->default_event_handler_ex() introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it.
In most cases rb->default_event_handler_ex() was passed a callback which was manually called at all other return points. This can now be done via atexit().

In future plugin_crt0.c could also handle clearing bss, initializing iram and more.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27873 a1c6a512-1295-4272-9138-f99709370657
2010-08-24 14:30:46 +00:00
Thomas Martitz
93cb949372 Revert "Introduce plugin_crt0.c that every plugin links."
Too much errors and no time to fix them now.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27863 a1c6a512-1295-4272-9138-f99709370657
2010-08-23 17:12:26 +00:00
Thomas Martitz
abdc5935be Introduce plugin_crt0.c that every plugin links.
It handles exit() properly, calling the handler also when the plugin returns
normally (also it makes exit() more standard compliant while at it).
It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore.

To work better together with callbacks passed to rb->default_event_handler_ex introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it.
In most cases it was passed a callback which was manually called at all other return points. This can now be done via atexit().

In future plugin_crt0.c could also handle clearing bss, initializing iram and more.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27862 a1c6a512-1295-4272-9138-f99709370657
2010-08-23 16:56:49 +00:00
Thomas Martitz
0a1d7c28b7 Make open() posix compliant api-wise. A few calls (those with O_CREAT) need the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25844 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 17:35:13 +00:00
Marcin Bukat
b09d3aec39 Add MPIO HD200 port - changed files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25724 a1c6a512-1295-4272-9138-f99709370657
2010-04-26 21:40:00 +00:00
Tomer Shalev
dd8b40701e Brickmania: Fix bogus fires
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25690 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 09:08:21 +00:00
Tomer Shalev
5c7a76d596 Brickmania: Use defined constant instead of hard-coded value
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25689 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 08:46:44 +00:00
Tomer Shalev
4761efa573 Yet another try at fixing "FS#10959 - Brickmania - Ball disappears"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25688 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 08:38:53 +00:00
Tomer Shalev
62562f1cdd Brickmania: Fix flip delay was actually N+1 seconds (11 instead of 10)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25687 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 08:33:16 +00:00
Tomer Shalev
5db5de5418 Brickmania: No need to init these global variables, as they are set later on
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25686 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 08:16:00 +00:00
Tomer Shalev
16e89a4aae Brickmania: Move Congratulations message a bit up, so it won't get clipped by the next line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25685 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 08:14:33 +00:00
Tomer Shalev
704eb8adee Brickmania: Don't use hard coded value
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25372 a1c6a512-1295-4272-9138-f99709370657
2010-03-28 16:36:30 +00:00
Tomer Shalev
b917337be9 Brickmania: Fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25358 a1c6a512-1295-4272-9138-f99709370657
2010-03-27 18:27:29 +00:00
Tomer Shalev
857e946923 Brickmania: Prevent a ball that is sticked to the edge of the pad from being fired outside the screen's region when the pad is moved all the way to the screen's edge
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25357 a1c6a512-1295-4272-9138-f99709370657
2010-03-27 18:23:43 +00:00
Tomer Shalev
8e8d2c2a5b Brickmania: Simplify movement of pad (and any balls that are sticked to it)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25356 a1c6a512-1295-4272-9138-f99709370657
2010-03-27 18:17:58 +00:00
Tomer Shalev
be730dce0c Brickmania: Prevent two overlapping balls from destrying bricks together and stick forever
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25355 a1c6a512-1295-4272-9138-f99709370657
2010-03-27 17:56:54 +00:00
Tomer Shalev
985d0bb3f0 Brickmania: Test if power-up hit side of paddle
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24949 a1c6a512-1295-4272-9138-f99709370657
2010-02-27 18:45:37 +00:00
Tomer Shalev
ce8b00d540 Brickmania: Use helper function check_rect to test whether ball hits brick
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24948 a1c6a512-1295-4272-9138-f99709370657
2010-02-27 18:23:46 +00:00
Teruaki Kawashima
3f8d4a5a0f use same variable/macro name for highscore among plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24941 a1c6a512-1295-4272-9138-f99709370657
2010-02-27 14:45:37 +00:00
Tomer Shalev
b21b0c872e Brickmania: Use NUMBER_OF_POWERUPS in enum
Thanks for kugel and linuxstb for this


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24935 a1c6a512-1295-4272-9138-f99709370657
2010-02-27 09:35:47 +00:00
Tomer Shalev
66916c6d67 Brickmania: Revert to using intersection checks for testing if powerup hit
paddle

r24925 introduced a potential bug: the collision detection with the paddle is
not using the line intersection checks and consequently could cause the powerup
to be missed if the drop speed is fast enough (which varies depending on the
target because of the speed scaling).

Thanks for Karl Kurbjun for noticing and alerting!


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24934 a1c6a512-1295-4272-9138-f99709370657
2010-02-27 08:24:45 +00:00
Tomer Shalev
45a14f31d0 Brickmania: Use static whenever possible
- Also fix some code styling


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24933 a1c6a512-1295-4272-9138-f99709370657
2010-02-27 08:02:12 +00:00
Tomer Shalev
e96f05822f Brickmania: Fix inner loop used the same variable as outer loop, which trashed
powerups when paddle hit Normal or Fire powerups


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24932 a1c6a512-1295-4272-9138-f99709370657
2010-02-27 07:58:48 +00:00
Tomer Shalev
ebbfe872ac Brickmania: Fix NUMBER_OF_POWERUPS and POWER_TYPE_COUNT were used for the same purpose
Thanks for Asael Reiter for spotting this


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24928 a1c6a512-1295-4272-9138-f99709370657
2010-02-26 15:02:50 +00:00
Tomer Shalev
410cb26cc8 Brickmania: Re-arrange code (no functional change)
- Remove use of typedefs


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24927 a1c6a512-1295-4272-9138-f99709370657
2010-02-26 14:36:37 +00:00
Tomer Shalev
adcbb07303 Brickmania: Fix wrong power image in shown, caused by previous commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24926 a1c6a512-1295-4272-9138-f99709370657
2010-02-26 14:32:27 +00:00
Tomer Shalev
50cb86cff3 FS#11057 - brickmania: simplify the powerups
Author: Asael Reiter

Added some changes by me.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24925 a1c6a512-1295-4272-9138-f99709370657
2010-02-26 14:06:34 +00:00
Tomer Shalev
cee3b29729 FS#11049 - Brickmania: Make brick a two-dimensional array
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24890 a1c6a512-1295-4272-9138-f99709370657
2010-02-24 20:08:30 +00:00
Teruaki Kawashima
56d29e8977 some changes to use of display_text.
* add parameter, wait_key to display_text().
 - set this true to wait button press after all words is displayed.
* use ARRAYLEN macro instead of #define WORDS
* add macro to indicate end of style array.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24846 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 07:17:15 +00:00
Tomer Shalev
cd08122e4e Brickmania: Hopefully prevent dissappearing of the ball
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24810 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 17:16:07 +00:00
Tomer Shalev
3dc9d111b3 Brickmania: Use predefined macro definition when possible
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24809 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 16:13:43 +00:00
Tomer Shalev
73c047c8dc FS#10485 - Some changes for brickmania
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24775 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 16:34:18 +00:00
Tomer Shalev
5bae969a3e Brickmania: Use defines for score values
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24771 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 12:52:31 +00:00
Tomer Shalev
320eab69d3 Brickmania: Remove spaces at the end of line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24769 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 07:36:56 +00:00
Tomer Shalev
ac9f850b7d Brickmania: Forgotten one more hard-coded value
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24768 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 07:35:47 +00:00
Tomer Shalev
804f67b8ce Brickmania: Use constant for default value and rename variable of flip-sides delay
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24767 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 07:32:27 +00:00
Tomer Shalev
a745fab8ce Brickmania: Use constants for number of bricks rows and columns, and for number of levels
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24766 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 07:28:49 +00:00
Tomer Shalev
9d8e07a3fc Brickmania: Use constant for number of fires
Part of FS#10485 by Asael Reiter


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24764 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 07:16:09 +00:00
Tomer Shalev
f3e0275671 Brickmania: Test returned value of file operations
This doesn't solve FS#11031, but it's a good practice to test returned values nevertheless.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24759 a1c6a512-1295-4272-9138-f99709370657
2010-02-18 22:01:40 +00:00
Tomer Shalev
82d456717e Brickmania: Fix FS#10959 - Ball disappears
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24700 a1c6a512-1295-4272-9138-f99709370657
2010-02-16 20:58:59 +00:00
Tomer Shalev
f38efac9e2 Brickmania: Fix continue message for Cowon D2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24671 a1c6a512-1295-4272-9138-f99709370657
2010-02-15 19:52:29 +00:00
Szymon Dziok
841cffab5b Packard Bell Vibe 500: More plugin keymaps (second portion).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24634 a1c6a512-1295-4272-9138-f99709370657
2010-02-13 15:46:34 +00:00
Tomer Shalev
07a6de15bd Brickmania: Use touchpad actions even if buttons are assigned to them (Cowon D2)
Thanks for Strife89DS and pixelma for spotting this


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24554 a1c6a512-1295-4272-9138-f99709370657
2010-02-07 20:19:34 +00:00