66 Commits

Author SHA1 Message Date
185d999b6b Make the keyboard-control cursors visible whenever a keyboard control is
activated.

[originally from svn r6013]
2005-06-25 13:43:45 +00:00
6e79ff9df5 Couple of presets.
[originally from svn r6011]
2005-06-24 16:35:42 +00:00
b873c87c37 More patches from James Harvey: enforce a maximum brightness in the
background colour (to ensure white pegs show up against it), and
convert the keyboard-control cursor into a rectangle when it's over
the hint pegs (otherwise it looks rather silly for numbers of pegs
above 4).

[originally from svn r6010]
2005-06-24 16:35:27 +00:00
31d96181a8 Fix another display/UI glitch which triggered if you filled a row
(so that the hint pegs lit up as `ready') and then pressed Undo: the
markable flag would remain set and the redrawing wouldn't darken the
pegs again.

[originally from svn r6009]
2005-06-24 12:30:30 +00:00
029e8b85ce Turn off the keyboard-control cursor when the user reverts to mouse
control.

[originally from svn r6008]
2005-06-24 11:13:08 +00:00
249d345ed4 My background-erasing changes in r5996/r5997 caused trouble with the
keyboard-control cursors, and when I tried to fix those more
wallpaper bubbles popped up elsewhere. Here's what I think is a
proper fix: a comprehensive overhaul of the redraw code such that,
instead of tracking the cursor positions explicitly in the
drawstate, we instead track for each peg position whether or not a
cursor is currently displayed at that position. So cursor erasing
and cursor drawing become part of the main draw loop rather than a
separate bit on the end.

[originally from svn r6006]
[r5996 == 3d58feb561ef09cf977f710d69a3562529e23f0f]
[r5997 == a46e3266558eaf5cd18ac2a6322af65c196c3655]
2005-06-24 11:03:20 +00:00
75225284c0 Array overflow fix from James Harvey.
[originally from svn r6005]
2005-06-23 23:11:59 +00:00
fda72b0f1e Make the hold marker' in Guess accessible from the keyboard (H' key, for want
of a better idea).

[originally from svn r6004]
2005-06-23 22:01:17 +00:00
2dabe9458f Reinstate WinHelp topic now we have a manual chapter.
[originally from svn r6002]
2005-06-23 21:37:05 +00:00
af052f2620 James Harvey's extensions to Guess: a couple of extra game settings
plus a manual chapter.

[originally from svn r5999]
2005-06-23 18:50:58 +00:00
a46e326655 Bah, not good enough. Extend those background erases by one more
pixel.

[originally from svn r5997]
2005-06-23 18:02:21 +00:00
3d58feb561 Erase backgrounds when drawing over an existing circle, for the
benefit of antialiasing platforms such as OS X. Also in this
checkin, fiddle with svn:ignore (there's a new puzzle binary).

[originally from svn r5996]
2005-06-23 17:43:43 +00:00
ebca9edc7b Allow dragging of coloured pegs from previous guesses. Also
reorganise the colours so there are fewer of those terribly
computery cyan and magenta shades, and more good old-fashioned
colours with simple names like orange and purple. Finally, change
the `right place' marking peg colour from red to black, in line with
at least _my_ old Mastermind set (I faintly suspect red marker pegs
of being an Americanism) and also so that the marker pegs and the
coloured pegs have no colours in common.

[originally from svn r5995]
2005-06-23 16:36:09 +00:00
1aed44db0b Must outline as well as filling circles, because not all platforms
can be guaranteed to draw bare filled shapes the same way.

[originally from svn r5994]
2005-06-23 12:55:47 +00:00
d781db11dd Two small fixes: add some ceil() calls to stop the puzzle shrinking
every time I press N, and revert the help topic to NULL until some
documentation materialises.

[originally from svn r5993]
2005-06-23 12:21:14 +00:00
f862a227be `Guess', a Mastermind clone from James Harvey. This checkin also
introduces a few new utility functions in misc.c, one of which is
the bitmap obfuscator from Mines (which has therefore been moved out
of mines.c).

[originally from svn r5992]
2005-06-23 09:14:19 +00:00