summaryrefslogtreecommitdiff
path: root/apps/plugins/solitaire.c
AgeCommit message (Collapse)Author
2008-01-10Accept FS#8341 - rename BUTTON_SCROLL_UP/DOWN to FWD/BACK on the e200 to ↵Jonathan Gordon
make it consistant with the ipods. apart from removing a bit of confusion, it fixes the wheel in pictureflow and possibly elsewhere. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16045 a1c6a512-1295-4272-9138-f99709370657
2007-09-30Fix a few solitaire game saving issues: Add a "Save and Quit" menu entry. ↵Antoine Cellerier
Using "Quit" will delete the save file if it exists. Save on power off seems to work fine. Save on USB doesn't work (are file IOs disabled when USB is plugged?) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14921 a1c6a512-1295-4272-9138-f99709370657
2007-09-24Automatically save and load solitaire game. Close FS#7796. (Do we need a ↵Antoine Cellerier
"quit without saving" menu entry?) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14846 a1c6a512-1295-4272-9138-f99709370657
2007-09-20Enable plugins on the Sansa C200. Large parts taken from patch FS#7749 by ↵Marianne Arnold
Max Kelley with tweaks, bit of cleanup and additional bitmaps by me. Some of the now enabled plugins could still be improved in regard to screen size adaptation or keymaps but this way it can easily be done later and one by one. The rather ugly 'ifndef's I added temporaryly in plugins/SOURCES will also go one by one. Plugin button actions cause some quirks in a few plugins (e.g. 'clock') but since it's not critical , the bitmaps were already done and it makes a good example for discussing plugin button actions, I thought it could go in. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14771 a1c6a512-1295-4272-9138-f99709370657
2007-08-10Let solitaire save its settings when performing shutdown from inside the ↵Peter D'Hoye
game or menu git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14276 a1c6a512-1295-4272-9138-f99709370657
2007-07-27Rockbox compiles and boots now on the 2nd gen, but doesn't work properly yet.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14021 a1c6a512-1295-4272-9138-f99709370657
2007-05-19attempt to make the Gigabeat button mappings in the plugins more logical and ↵Marcoen Hirschberg
in line with the mapping in rockbox itself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13436 a1c6a512-1295-4272-9138-f99709370657
2007-05-15another LAME for colombo... fix the sansa wheel; in solitaireJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13391 a1c6a512-1295-4272-9138-f99709370657
2007-05-08Move the old api out of the core and into the plugin lib.Jonathan Gordon
ew plugins shuold use the new api and not this one. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13358 a1c6a512-1295-4272-9138-f99709370657
2007-04-23make the moving smarter so you dont have to select the top card of a column ↵Jonathan Gordon
to move the whole column git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13248 a1c6a512-1295-4272-9138-f99709370657
2007-03-18Remove buffer overflow in solatiare menuJonathan Gordon
Make the old api -> new api wrapper in the menu safer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12831 a1c6a512-1295-4272-9138-f99709370657
2007-03-16Rename some macros to account for the recently added M5 port. No code changes.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12809 a1c6a512-1295-4272-9138-f99709370657
2007-03-16Get rid of the 'center' parameter for splashes. There were only 2 of almost ↵Jens Arnold
500 splashes which were not centered. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
2007-03-16FS#6790 - Add playback control menu to Solitaire, thanks to Douglas Valentine.Zakk Roberts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12798 a1c6a512-1295-4272-9138-f99709370657
2007-03-11revert FS#6747 — y-margin reset in gui_list_draw, it introduced a nasty Jonathan Gordon
scroll bug which isnt so simple to fix. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12719 a1c6a512-1295-4272-9138-f99709370657
2007-03-10Accept FS#6747 by Timo HorstschäferJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12704 a1c6a512-1295-4272-9138-f99709370657
2007-02-12Rename solitaire_ bitmaps to card_ since they are used in solitaire and ↵Tom Ross
blackjack. Ideally all future card games will use these graphics. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12281 a1c6a512-1295-4272-9138-f99709370657
2007-01-14Start of work on a port to the Archos 'AV300' (AV320/340/380) - a working UI ↵Dave Chapman
simulator (but with a dummy background image for now) and the beginnings of the target-specific firmare code. Port is temporarily using a 2bpp LCD buffer format - the AV300 has a 320x240 colour (YCbCr-based) LCD which will need a new framebuffer format and drawing routines, but the LCD is also capable of various paletted bitmap modes, one of which has an identical framebuffer format to the greyscale ipods. Buttons (and hence the button mappings) are identical to the Archos Recorder, with the exception that the PLAY button on the Recorder is replaced by pressing the joystick on the AV300 (which I call BUTTON_SELECT). The initial port will begin by being strictly HWCODEC, but will evolve to be a hybrid SWCODEC/HWCODEC platform - it has a MAS3587F but also a main CPU (54MHz arm7tdmi plus DSP) capable of software decoding of at least some formats. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12008 a1c6a512-1295-4272-9138-f99709370657
2007-01-03Improved Sansa keymappings for Pacbox, Solitaire and Star. From FS#6466 by ↵Daniel Ankers
Piotr Jafiszow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11892 a1c6a512-1295-4272-9138-f99709370657
2006-11-19Solitaire: Repair card border and selection frame. Would it be better to ↵Jens Arnold
make the playfield background always green again? git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11557 a1c6a512-1295-4272-9138-f99709370657
2006-11-15Don't need to remove the backdrop for all plugins - leave it up for some.Karl Kurbjun
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11526 a1c6a512-1295-4272-9138-f99709370657
2006-10-26Allow the Sansa e200 UI simulator to be built. Thanks to Andre Smith for the ↵Barry Wardell
nice image of the Sansa. Lots more to be done including testing and tweaking the keymaps and modifying the plugins for the Sansa's 176x220 LCD. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11351 a1c6a512-1295-4272-9138-f99709370657
2006-10-23Solitaire: Optionally auto-unhide the next card on a stack if the last known ↵Jens Arnold
card is moved away. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11323 a1c6a512-1295-4272-9138-f99709370657
2006-10-18Solitaire: better button assignments for H10 and X5 (with working shortcuts)Marianne Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11262 a1c6a512-1295-4272-9138-f99709370657
2006-10-11Fixed background color on solitaire menu. It wasn't set when entering menu ↵Michael Sevakis
and having a dark background made it almost unreadable. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11182 a1c6a512-1295-4272-9138-f99709370657
2006-10-01Solitaire: Fixed incorrect condition check that caused an out-of-bounds ↵Jens Arnold
access allowing to put the 2 of spades into nirvana. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11104 a1c6a512-1295-4272-9138-f99709370657
2006-10-01Solitaire: Don't let the REM2STACK shortcut repeat on irivers.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11103 a1c6a512-1295-4272-9138-f99709370657
2006-09-30Solitaire: colourised selection frame on colour targets.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11097 a1c6a512-1295-4272-9138-f99709370657
2006-09-29Heavy graphical rework of solitaire: * Now uses full-card bitmaps (minus ↵Jens Arnold
border) in several resolutions and colour depths. All graphical work done by Marianne Arnold; 37x49 and 26x33 pixel graphics partially based on the PySol cardset adapted from kdegames 1.0 * Cardback for greyscale targets. * Nicer edges for large cards. * Correct vertical card spacing within columns, hidden cards always use half the space now. * Correct horizontal spacing of columns. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11096 a1c6a512-1295-4272-9138-f99709370657
2006-09-22Tweaked the card animation a bit more.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11028 a1c6a512-1295-4272-9138-f99709370657
2006-09-21Solitaire: Adjust bouncing cards parameters to the LCD resolution.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11021 a1c6a512-1295-4272-9138-f99709370657
2006-09-20Solitaire: Don't use bitfields where it's unnecessary, and use 'int' for ↵Jens Arnold
single variables. Saves ~400 bytes of code on SH1, and ~1200 bytes of code on coldfire. ARM doesn't profit though. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11016 a1c6a512-1295-4272-9138-f99709370657
2006-09-19Solitaire: Fixed menu colours.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10999 a1c6a512-1295-4272-9138-f99709370657
2006-09-18Solitaire: Removed unused button definitions.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10987 a1c6a512-1295-4272-9138-f99709370657
2006-09-18Solitaire: * Use rockbox API menu. * Fixed typo.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10986 a1c6a512-1295-4272-9138-f99709370657
2006-09-17Solitaire: * Button assignments: Better layout for ipods, allowing ↵Jens Arnold
one-handed operation during the game. More logical shortcut buttons for Ondios. Slight changes for other targets, including working button repeat for up/down when there is no dual use. * Help text showing all possible buttons instead of forcing the user to try and find out. The text adapts to LCD resolution and selected font. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10984 a1c6a512-1295-4272-9138-f99709370657
2006-09-15Solitaire: * Even more 'natural' bouncing cards. * Only load the config from ↵Jens Arnold
disk once, and only save it on exit if it changed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10949 a1c6a512-1295-4272-9138-f99709370657
2006-09-10Looks like we need to explicitly say that we need signed chars.Antoine Cellerier
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10926 a1c6a512-1295-4272-9138-f99709370657
2006-09-10Fix corruption in remains stack and simplify code where possibleAntoine Cellerier
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10924 a1c6a512-1295-4272-9138-f99709370657
2006-09-06Correct the help text for iriver HXXX playersMartin Arver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10898 a1c6a512-1295-4272-9138-f99709370657
2006-09-06More natural bouncing cards animation.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10897 a1c6a512-1295-4272-9138-f99709370657
2006-09-06Solitaire: * Improved large suits for medium/large LCDs, and all new large ↵Jens Arnold
suits for small LCDs, by Marianne Arnold. * Use the actual card dimensions in the code. Old values were one off. * #ifdef cleanup using the capabilities of the bitmap build system. * Some more tweaks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10896 a1c6a512-1295-4272-9138-f99709370657
2006-09-05Untested cursor display fix when no cards are left/drawn on the remains stack.Antoine Cellerier
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10894 a1c6a512-1295-4272-9138-f99709370657
2006-09-05Add some yielding during the bouncing cards sequence (and only refresh ↵Antoine Cellerier
what's needed) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10893 a1c6a512-1295-4272-9138-f99709370657
2006-09-04Foreground color in menusAntoine Cellerier
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10885 a1c6a512-1295-4272-9138-f99709370657
2006-09-04Bouncing cards when you win :)Antoine Cellerier
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10884 a1c6a512-1295-4272-9138-f99709370657
2006-09-04Restore default background color when going back to menu after winning.Antoine Cellerier
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10883 a1c6a512-1295-4272-9138-f99709370657
2006-09-04Some more remains' stack bug fixes. I must've been drunk when i wrote the ↵Antoine Cellerier
original code... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10881 a1c6a512-1295-4272-9138-f99709370657
2006-09-03Fix some more bugs found by amiconn:Antoine Cellerier
(1) The bug I already described yesterday: If the draw stack becomes completely empty, it reappears. Slightly irritating (2) When the cursor is placed on the remains' stack when there is no card, and then a card is drawn, the cursor disappears (4) (easy one) The help texts refer to drawing 3 new cards, but solitaire now has selectable draw one / draw three git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10873 a1c6a512-1295-4272-9138-f99709370657
2006-09-03Use consistant margins. If people still have ideas to make it look better on ↵Antoine Cellerier
some of the targets, feel free to say so on IRC. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10868 a1c6a512-1295-4272-9138-f99709370657