diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-06-18 08:46:33 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-06-18 08:46:33 +0000 |
| commit | b0df75952bb6302e79fa1fbf07f2495d8e283a9a (patch) | |
| tree | c13b74894d43ed6a99d3406e3f41c6a43c0af6cf | |
| parent | d74d3f26d8dddaefe90868982eb30ea54fb2e5f5 (diff) | |
| download | puzzles-b0df75952bb6302e79fa1fbf07f2495d8e283a9a.zip puzzles-b0df75952bb6302e79fa1fbf07f2495d8e283a9a.tar.gz puzzles-b0df75952bb6302e79fa1fbf07f2495d8e283a9a.tar.bz2 puzzles-b0df75952bb6302e79fa1fbf07f2495d8e283a9a.tar.xz | |
I've decided I didn't like the asymmetry of putting the solution
markers in the top left of the square.
[originally from svn r5974]
| -rw-r--r-- | flip.c | 14 | ||||
| -rw-r--r-- | puzzles.but | 11 |
2 files changed, 16 insertions, 9 deletions
@@ -1053,11 +1053,19 @@ static void draw_tile(frontend *fe, game_drawstate *ds, } /* - * Draw a hint blob if required. + * Draw a hint rectangle if required. */ if (tile & 2) { - draw_rect(fe, bx + TILE_SIZE/20, by + TILE_SIZE / 20, - TILE_SIZE / 6, TILE_SIZE / 6, COL_HINT); + int x1 = bx + TILE_SIZE / 20, x2 = bx + TILE_SIZE - TILE_SIZE / 20; + int y1 = by + TILE_SIZE / 20, y2 = by + TILE_SIZE - TILE_SIZE / 20; + int i = 3; + while (i--) { + draw_line(fe, x1, y1, x2, y1, COL_HINT); + draw_line(fe, x1, y2, x2, y2, COL_HINT); + draw_line(fe, x1, y1, x1, y2, COL_HINT); + draw_line(fe, x2, y1, x2, y2, COL_HINT); + x1++, y1++, x2--, y2--; + } } unclip(fe); diff --git a/puzzles.but b/puzzles.but index 3101bf1..5f34a83 100644 --- a/puzzles.but +++ b/puzzles.but @@ -1013,12 +1013,11 @@ change when you flip it. Left-click in a square to flip it and its associated squares. -If you use the \q{Solve} function on this game, it will highlight -some of the squares with red blobs. If you click once in every -square with a red blob, the game should be solved. (If you click in -a square \e{without} a red blob, a red blob will appear in it to -indicate that you will need to reverse that operation to reach the -solution.) +If you use the \q{Solve} function on this game, it will mark some of +the squares in red. If you click once in every square with a red +mark, the game should be solved. (If you click in a square +\e{without} a red mark, a red mark will appear in it to indicate +that you will need to reverse that operation to reach the solution.) \H{flip-parameters} \I{parameters, for flip}Flip parameters |