summaryrefslogtreecommitdiff
path: root/apps/plugins/sudoku/sudoku.c (follow)
Commit message (Collapse)AuthorAge
* YH820: game fix and improvementsSebastian Leonhardt2014-05-27
| | | | | | | | | | | | | | | | | * sudoku: make colour icons (without screen was squeezed) * jewels: add colour bitmaps * pegbox: make game fit on screen (add small header bitmap), improve keymap I left the original pegbox keymaps for samsung's YH-92x, because they seem to make some sense there (YH92x has a REC switch instead of pushbutton). Someone with a YH9xx target has to check what is better... Change-Id: Id388c9d69e4a5a1d8ad4c3d7a05cdfc1dff0d06c Reviewed-on: http://gerrit.rockbox.org/816 Reviewed-by: Szymon Dziok <b0hoon@o2.pl> Tested: Szymon Dziok <b0hoon@o2.pl>
* sudoku: make local functions static and add missing #includeBertrik Sikken2012-01-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31631 a1c6a512-1295-4272-9138-f99709370657
* Sansa Clip Zip: enable all pluginsRafaël Carré2011-12-02
| | | | | | use too big graphics when needed (some plugins will be ugly) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31113 a1c6a512-1295-4272-9138-f99709370657
* Fix a bunch of 'variable set but not used' warnings reported from GCC 4.6.0.Andree Buschmann2011-05-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29841 a1c6a512-1295-4272-9138-f99709370657
* Remove a bunch of build conditions inside .c filesRafaël Carré2010-08-25
| | | | | | Fix logic in pacbox makefiles for asm optimizations git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27887 a1c6a512-1295-4272-9138-f99709370657
* Second try: Introduce plugin_crt0.c that every plugin links.Thomas Martitz2010-08-24
| | | | | | | | | | | | | 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
* Revert "Introduce plugin_crt0.c that every plugin links."Thomas Martitz2010-08-23
| | | | | | 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
* Introduce plugin_crt0.c that every plugin links.Thomas Martitz2010-08-23
| | | | | | | | | | | | | 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
* Save the scratchpad state in Sudoku plugin (FS#5737).Dominik Riebeling2010-06-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26622 a1c6a512-1295-4272-9138-f99709370657
* sudoku: remove commented out code.Teruaki Kawashima2010-05-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26169 a1c6a512-1295-4272-9138-f99709370657
* Make open() posix compliant api-wise. A few calls (those with O_CREAT) need ↵Thomas Martitz2010-05-06
| | | | | | 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
* sudoku: fix FS#7772: Sudoku: "Solve" Crash.Teruaki Kawashima2009-12-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24024 a1c6a512-1295-4272-9138-f99709370657
* Fix a typo for the GoGear SA9200 on chessclock, and got the LCD resolutionRobert Menes2009-12-04
| | | | | | | in the right spot this time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23843 a1c6a512-1295-4272-9138-f99709370657
* Another round of plugin keymaps for the Philips GoGear SA9200.Robert Menes2009-12-03
| | | | | | | Just a few more to go... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23838 a1c6a512-1295-4272-9138-f99709370657
* sudoku: fix improper checking if loaded puzzle is valid. blocks also need to ↵Teruaki Kawashima2009-11-15
| | | | | | be checked. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23630 a1c6a512-1295-4272-9138-f99709370657
* Fix STRIDE macro for multiscreen and add stride support for picture lib.Karl Kurbjun2009-09-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22615 a1c6a512-1295-4272-9138-f99709370657
* pegbox, sliding_puzzle, sokoban, solitaire, sudoku, and superdom: Add ↵Karl Kurbjun2009-08-31
| | | | | | support for vertical strides git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22573 a1c6a512-1295-4272-9138-f99709370657
* Sudoku: Add support for 640xx480 screens.Karl Kurbjun2009-07-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22060 a1c6a512-1295-4272-9138-f99709370657
* FS#10080Nils Wallménius2009-07-14
| | | | | | | | | | * Move strncpy() from core to the pluginlib * Introduce strlcpy() and use that instead in most places (use memcpy in a few) in core and some plugins * Drop strncpy() from the codec api as no codec used it * Bump codec and plugin api versions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21863 a1c6a512-1295-4272-9138-f99709370657
* Correct return value when quit sudoku from the menu.Teruaki Kawashima2009-07-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21771 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#10094 by Teruaki Kawashima:Jonathan Gordon2009-06-16
| | | | | | | Replace the old menu API with the "new" one (a very long time overdue so huge thanks for the work.) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21306 a1c6a512-1295-4272-9138-f99709370657
* Convert a number of places in core and plugins to use the BIT_N() macro ↵Jens Arnold2009-06-07
| | | | | | instead of 1<<n. Speeds up things on SH1, and also reduces core binsize. Most notable speedups: 1 bit lcd driver: drawpixel +20%, drawline + 27%, hline +5%; jpeg viewer: +8% for 1/8 scaling. Other targets are unaffected. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21205 a1c6a512-1295-4272-9138-f99709370657
* unify pointers to value for configfile, and add TYPE_BOOL type, used byAndrew Mahone2009-01-17
| | | | | | pictureflow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19786 a1c6a512-1295-4272-9138-f99709370657
* loader-initialized global plugin API:Andrew Mahone2009-01-16
| | | | | | | | | | | | | | | | | struct plugin_api *rb is declared in PLUGIN_HEADER, and pointed to by __header.api the loader uses this pointer to initialize rb before calling entry_point entry_point is no longer passed a pointer to the plugin API all plugins, and pluginlib functions, are modified to refer to the global rb pluginlib functions which only served to copy the API pointer are removed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19776 a1c6a512-1295-4272-9138-f99709370657
* Sansa Clip: build plugins (FS#9578)Rafaël Carré2008-11-28
| | | | | | | | | | | | Use unmodified C200 keymap when possible, variation of it when not Use Archos bitmaps when possible Current problems: - Pegbox plugin shows display corruption (corruption is different in the simulator) - Bubbles plugin misses 1 or 2 bottom lines, but if we gain back these lines it occupies a too small area of the screen - Splitted screen (yellow/blue) is a bit weird in most plugins git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19252 a1c6a512-1295-4272-9138-f99709370657
* Make Select change the scroll direction in Sudoku on Ipods (FS#8428 by Henri ↵Dominik Riebeling2008-11-27
| | | | | | Valta). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19247 a1c6a512-1295-4272-9138-f99709370657
* New makefile solution: A single invocation of 'make' to build the entire ↵Björn Stenberg2008-11-20
| | | | | | | | | tree. Fully controlled dependencies give faster and more correct recompiles. Many #include lines adjusted to conform to the new standards. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19146 a1c6a512-1295-4272-9138-f99709370657
* Factor out save / restore sudoku board (FS#9516 by Alexander Levin)Dominik Riebeling2008-10-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18939 a1c6a512-1295-4272-9138-f99709370657
* state->savedboard doesn't exist, so revert that part of r18906 for now. It ↵Jens Arnold2008-10-29
| | | | | | might be necessary to redo this fix properly. Also, state->currentboard is an array of shorts, so the memcpy() only covered half of it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18917 a1c6a512-1295-4272-9138-f99709370657
* Fix sudoku crash when using reload without previously saved state (FS#9509 ↵Dominik Riebeling2008-10-28
| | | | | | by Henri Valta). Fix a similar issue when using reload after generating a new sudoku by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18906 a1c6a512-1295-4272-9138-f99709370657
* Add in-grid graphical markers for scratchpad values to sudoku (FS#8364 by ↵Dominik Riebeling2008-10-25
| | | | | | Henri Valta with adjustments by me). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18880 a1c6a512-1295-4272-9138-f99709370657
* revert plugin_api part of r18830, as this was the wrong solution for thoseFrank Gevaerts2008-10-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18831 a1c6a512-1295-4272-9138-f99709370657
* code police : fix some multiply defined variablesFrank Gevaerts2008-10-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18830 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* Plugin parameters should be const.Steve Bavin2008-05-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657
* allow the plugin playback control menu to be put in a viewport.Jonathan Gordon2008-04-23
| | | | | | | fix text editor so it is actually possible to get to the control menu if the file hasnt been changed (its in the regular menu now) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17221 a1c6a512-1295-4272-9138-f99709370657
* Adapted most multi-source plugins to the iAudio M3 keypad and screen. Doom ↵Jens Arnold2008-03-22
| | | | | | and mpegplayer are disabled because of the not yet implemented greyscale library, and zxbox used 2-bit greyscale for now. * Slight optimisation for the (currently unused except on M3) 2-bit greyscale code in zxbox. * Simplified button definitions in chessbox. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16744 a1c6a512-1295-4272-9138-f99709370657
* Enable plugins on the Sansa C200. Large parts taken from patch FS#7749 by ↵Marianne Arnold2007-09-20
| | | | | | 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
* Sudoku: Optionally display coloured numbers on colour targets.Jens Arnold2007-09-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14730 a1c6a512-1295-4272-9138-f99709370657
* Move the old api out of the core and into the plugin lib.Jonathan Gordon2007-05-08
| | | | | | | 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
* Get rid of the 'center' parameter for splashes. There were only 2 of almost ↵Jens Arnold2007-03-16
| | | | | | 500 splashes which were not centered. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
* FS#6539 - Thanks to Tom RossBarry Wardell2007-01-15
| | | | | | | | | | | Add Jewels, Spacerocks, Wormlet, Rockboy and Sudoku for the e200. Also Includes manual changes for plugins. Add X5 keymappings for wormlet to the manual. Add help text for Jewels on the H10 and give a warning if help text is not defined. Fix bug in spacerocks lives drawing on large screens (larger than Ondio). Change spacerocks comments to C style. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12018 a1c6a512-1295-4272-9138-f99709370657
* force sane colours on sudoku so the board is viewable on light-on-dark themesJonathan Gordon2006-12-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11797 a1c6a512-1295-4272-9138-f99709370657
* Hopefully clean up some errorsKarl Kurbjun2006-11-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11528 a1c6a512-1295-4272-9138-f99709370657
* Don't need to remove the backdrop for all plugins - leave it up for some.Karl Kurbjun2006-11-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11526 a1c6a512-1295-4272-9138-f99709370657
* Allow the Sansa e200 UI simulator to be built. Thanks to Andre Smith for the ↵Barry Wardell2006-10-26
| | | | | | 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
* Sudoku adapted to H10-5GB by Marianne Arnold.Jens Arnold2006-09-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10998 a1c6a512-1295-4272-9138-f99709370657
* Fixing Sudoku menu to work properly with FS#5182Shachar Liberman2006-08-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10546 a1c6a512-1295-4272-9138-f99709370657
* Sudoku: Slightly smaller bitmaps for iPod Video and Gigabeat to make the ↵Jens Arnold2006-08-10
| | | | | | board not stick to the LCD border, by Marianne Arnold. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10509 a1c6a512-1295-4272-9138-f99709370657
* Sudoku: * Changed the LCD size ifdef magic to ease adding of new LCD ↵Jens Arnold2006-08-09
| | | | | | resolutions. * Added vertical layout option with the scratchpad at the bottom (Gigabeat). * New Bitmaps for iPod Mini, iPod Video and Gigabeat, and slightly modified bitmaps for Archos, by Marianne Arnold. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10504 a1c6a512-1295-4272-9138-f99709370657