rockbox/apps/plugins/puzzles
Franklin Wei d9a55ac816 puzzles: fix blitting when zoomed
Both blitter_save() and blitter_load() functioned incorrectly when
zoomed in -- blitter_save() would copy from the wrong location, and
blitter_load() would ignore the y-coordinate of the destination.

Change-Id: I7c85debf5953575f72c4a81e3dbcf514202c3aed
2017-11-04 12:09:16 -04:00
..
dummy add fake stdio.h 2017-04-30 19:13:13 -04:00
help puzzles: resync with upstream 2017-10-23 17:19:29 -04:00
src puzzles: sync with upstream 2017-10-29 17:39:29 -04:00
compress.c puzzles: fix build 2017-08-16 15:01:38 -04:00
fonts.zip puzzles: dynamic text size via custom font pack 2017-07-17 16:58:13 -04:00
genhelp.sh puzzles: compress extensive help text 2017-08-16 11:40:37 -04:00
help.h puzzles: compress extensive help text 2017-08-16 11:40:37 -04:00
lz4tiny.c puzzles: compress extensive help text 2017-08-16 11:40:37 -04:00
lz4tiny.h puzzles: compress extensive help text 2017-08-16 11:40:37 -04:00
puzzles.make puzzles: remove redundant help content 2017-06-03 13:45:07 -04:00
rbassert.h
rbcompat.h puzzles: misc. changes and sync with upstream 2017-08-23 14:22:09 -04:00
rbmalloc.c puzzles: improve zoom rendering 2017-10-29 12:49:39 -04:00
rbwrappers.c puzzles: misc. changes and sync with upstream 2017-08-23 14:22:09 -04:00
README.rockbox puzzles: clarify code and documentation 2017-11-04 11:14:18 -04:00
rockbox.c puzzles: fix blitting when zoomed 2017-11-04 12:09:16 -04:00
SOURCES puzzles: compress extensive help text 2017-08-16 11:40:37 -04:00
SOURCES.games puzzles: enable Mines 2017-07-27 19:09:50 -04:00

Introduction
============

This is the readme for the Rockbox port of Simon Tatham's Portable
Puzzle Collection.

The upstream version used is subject to change, as it should be
relatively trivial to update it to a newer version. Simply copying the
upstream repo's contents into src/ and running genhelp.sh ought to do
it (watch out for API changes, though!).

Source structure
================

Most of the upstream files in src/ are essentially untouched, apart
from some minor adjustments to make them compile and run happily on
Rockbox. The majority of the rockbox-specific code is found in
rockbox.c, with some minor stuff in rbwrappers.c and rbmalloc.c.

Help feature
============

The Help feature is implemented by compiling each puzzle against a
compressed version of each puzzle's section from the upstream
documentation. These files are stored under help/, and are generated
by genhelp.sh from the puzzles.but file in the source
distribution. The compression is LZ4, implemented in lz4tiny.c (for
decompression on target), and compress.c (for generation). genhelp.sh
should be run whenever the documentation is chagned.

Kudos to Simon (duh), and Frank, for telling me about it.

Franklin Wei (__builtin)

Changelog
=========

April 2017: Changes made to move upstream sources to a separate
subdirectory, where they are completely unmodified from the
original. Updating the upstream version is now as simple as copying a
fresh set of sources to src/. Several hacks were used to accomplish
this: a global include specified on the command line, and a directory
of dummy header files.

August 2017: Every game that can be played with only the cursor keys
is now functional.

October 2017: Added zoom feature.