Commit graph

154 commits

Author SHA1 Message Date
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
Tomer Shalev
ed0290d30f Cowon D2: Use buttons for Brickmania instead of touchscreen, which hides the paddle
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24553 a1c6a512-1295-4272-9138-f99709370657
2010-02-07 19:16:21 +00:00
Karl Kurbjun
7746f94496 Brickmania: Change the drawing/collision detection to simplify position management.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24140 a1c6a512-1295-4272-9138-f99709370657
2010-01-02 04:51:32 +00:00
Karl Kurbjun
d9484b9251 Brickmania: Improve screen collision detection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24100 a1c6a512-1295-4272-9138-f99709370657
2009-12-23 03:52:50 +00:00
Karl Kurbjun
e7f2a13609 Accept a form of FS #10561 by Clément Pit-Claudel: Fullscreen Brickmania for portrait players.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24062 a1c6a512-1295-4272-9138-f99709370657
2009-12-18 04:12:05 +00:00
Karl Kurbjun
fe452a0de3 Accept FS #10568 by Asael Reiter: Brickmania Lasers not working properly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24061 a1c6a512-1295-4272-9138-f99709370657
2009-12-18 03:37:28 +00:00
Tomer Shalev
47ddbaa47b Cowon D2: Rename COWOND2_PAD -> COWON_D2_PAD to match macro used in manual, and
to target naming conventions in general


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24010 a1c6a512-1295-4272-9138-f99709370657
2009-12-15 20:51:41 +00:00
Teruaki Kawashima
5cdd920d12 Correct checking return value of open in plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23874 a1c6a512-1295-4272-9138-f99709370657
2009-12-06 13:52:28 +00:00
Robert Menes
f0092e739e Red is bad, mmmkay? And this should get rid of all that
pesky red.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23816 a1c6a512-1295-4272-9138-f99709370657
2009-12-02 03:19:10 +00:00
Robert Menes
261e1ae87a Begone, red!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23815 a1c6a512-1295-4272-9138-f99709370657
2009-12-02 03:12:14 +00:00
Robert Menes
ed940e2508 Fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23814 a1c6a512-1295-4272-9138-f99709370657
2009-12-02 02:15:07 +00:00