Commit graph

54 commits

Author SHA1 Message Date
ehouse
559700e27b Quick drawTileMidDrag() so doesn't crash. Still needs to set
background color.
2008-03-10 11:59:30 +00:00
ehouse
6e715d63ee change name of field. No code change. Pending on symbian and franklin which don't compile. 2008-02-02 15:17:53 +00:00
ehouse
995990d70a draw hint borders wider on high-res devices so they're actually visible 2007-12-19 05:29:53 +00:00
ehouse
7c8b7294cd add const to a bunch of char* decls in APIs and variables; no code change 2007-02-03 17:54:20 +00:00
ehouse
a998e96de9 Tweak scroll-of-focussed-board inval code so we don't inval the whole
board, which looks crappy.  Instead inval only what was previously a
border row, and pass a new param to draw_vertScrollBoard so the
platform can choose not to scroll cells that will just get overwritten
with different bits.
2007-01-21 22:59:29 +00:00
ehouse
45ad5bc5df Fix drawing highlighted cells on perimeter. 2007-01-20 04:30:02 +00:00
ehouse
2fabf70396 use new perimeter feature and conditionally replace manual board
framing with it.  Off for now.
2007-01-19 08:22:14 +00:00
ehouse
d350151659 remove code to save bits behind miniwindow 2007-01-18 05:49:07 +00:00
ehouse
68e2f821d6 beta 2; redraw focus ring after redrawing tray buttons; move board
focus border so it coincides with regular border.
2006-12-21 07:55:19 +00:00
ehouse
53765169be Draw focus differently in tray if whole thing has it, to include borders
between the tiles.
2006-11-17 13:46:06 +00:00
ehouse
91cf8543f5 Draw all focus indications ourselves: no more broken Palm API. Draw a
thick blue rect around board, and color all tiles and score positions
within the draw routines.
2006-11-14 06:52:11 +00:00
ehouse
d3812271a2 Add to draw APIs of individual elements (e.g. board cells) whether
they're focussed so that they can draw that during rather than after
everything else.  On palm, use this to draw focus using the system
selected color rather than with the blue nav rect.  Since a new param
was too much, add new enum type CellFlags and pass as bitvector to
draw APIs.
2006-11-12 14:36:15 +00:00
ehouse
44eaa36319 More progress on one-handed navigation: fix ncurses board clipped to
bottom of tray; add focus-related params to draw*Finished routines
(and simplify to one) so platforms don't have to save from Begin
routines (and stop palm doing that); check version of saved game, and
handle case where older binary tries to open newer version; redraw
Palm tray buttons after focus change to stop focus-rect ghosting; fix
annoying overlap in saved games dialog; palm version goes to a3.
2006-11-05 16:54:18 +00:00
ehouse
3153e2b867 Lots of progress on one-handed navigation: add gadgets to stand in for board
scoreboard and tray on palm; make center drill into the focussed object and
spacebar come back up then move the focus among them.  Integrate with other
focussable objects on main form.  Go from separate drawCursor routines to
same for all three, with cursor only visible when focus is drilled down.
On curses, add a hilite rect routine that can be called after text is laid
down, and use for cursors.
2006-11-03 06:23:54 +00:00
ehouse
935f87979e Use color rather than period to separate score from tiles left in
scoreboard.
2006-10-29 18:24:50 +00:00
ehouse
4daabf6fe5 Set -Wunused-parameter for those versions of gcc that support it, and
deal with the output by removing params where possible and elsewhere
by adding XP_UNUSED macro wrapping __attribute__((unused)).  There
should be NO change in function in spite of the large number of files.
2006-08-16 13:44:44 +00:00
ehouse
8c7624fe7d cleanup: remove overly verbose logging 2006-07-28 07:51:49 +00:00
ehouse
58bb0734b8 round up when determining top coord of letter in cell. Fixes "Q"
getting drawn higher than other ascii chars, and does not break even
taller chars in Danish or Portuguese.
2006-07-04 00:16:08 +00:00
ehouse
a1fcd56d55 on low-res screens, don't expand timer's clip rect to avoid erasing cell border below. 2006-07-03 23:44:51 +00:00
ehouse
08e8c4a858 Get rid of TALL_FONT macro, since it's permanently on anyway. 2006-04-01 21:25:58 +00:00
ehouse
3388fc9f7b Remove HIGHRES compile-time tests: all palm releases will have HIGHRES
support now; build in different directories.
2006-03-31 10:57:01 +00:00
ehouse
fb0d471dae add const decls to draw.h and dictnry.h functions where appropriate,
and modify "subclass" methods to match.  Should be no code change, but
this makes the intent of the APIs clearer.
2006-02-18 06:39:40 +00:00
ehouse
92485783af update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
ehouse
84ec7e38f2 Get rid of WinCopyRect-based method of drawing letters and values in
tray tiles, since it seems not to work on all versions of PalmOS.
Simply drawing seems fine where tested; will try close clipping if
erasure happens elsewhere.  Draw board-top stuff one pixel higher on
highres devices, and fix scoreboard being too narrow on high-res
devices.
2005-07-14 02:45:10 +00:00
ehouse
e1d3eeaf2a don't use %c on ARM. Crashes due to my bad StrPrintF implementation. 2005-07-08 08:30:42 +00:00
ehouse
a16505727a Moving glyph-measuring code to drawing; fix for highres case. 2005-07-08 03:14:43 +00:00
ehouse
9e76871306 (conditionally) modify dicts to support getting height of platform
glyphs, pass into drawing code so can be fetched and cached, and
implement for Palm.  This is to allow drawing glyphs (like Danish's
A-with-circle) that are taller than normal without the visual padding
the rest can have.  So far works for 68K/non-highres.  Will not
compile for ARM yet.
2005-07-07 03:46:07 +00:00
ehouse
3ab25c843b fix timer not getting drawn on highres screens 2005-06-23 04:21:35 +00:00
ehouse
5e547eb8b0 move playerNum into dsi so can be used in formatting score 2005-03-15 06:26:58 +00:00
ehouse
5dd17b4729 fix non-high-res build so compiles again 2004-11-17 03:54:35 +00:00
ehouse
b4afa129cb fix bug on (high-res screens that can't do tiny font) where value was
drawn too low.
2004-11-16 04:08:41 +00:00
ehouse
edd2c61976 add HintAtts param to draw_drawBoardArrow; in tiles, draw letter after
number so on those OS versions where winOverlay flag is ignored what's
erased will be part of the value rather than of the letter; use
nativeFormat in offscreenWindow so highres will work.
2004-11-14 16:19:21 +00:00
ehouse
f45de1395d draw hint rect segments a line at a time to avoid overwriting
blank-marking erasures.  Just doing the erasing after doesn't work
because it's really a circle and too much shows up.
2004-11-14 00:19:13 +00:00
ehouse
4b37b0dc94 skip Pts string if doing highres without small font capability 2004-11-03 03:57:07 +00:00
ehouse
be480dba5b more tweaks to high-res drawing -- and don't call WinSetScalingMode
when it's not available!
2004-11-02 06:05:23 +00:00
ehouse
7a03036e48 fix to compiler with FEATURE_HIGHRES undefined 2004-10-30 19:29:33 +00:00
ehouse
881e81425c Draw tray tile value very small in highres case. 2004-10-30 19:25:23 +00:00
ehouse
8238ca20f4 draw hint-rect borders 2004-06-16 04:06:43 +00:00
ehouse
1324d81bb9 fix compile error 2004-05-29 14:26:36 +00:00
ehouse
e16b4a1f91 scoreboard changes to fix no-grid highres case 2004-05-16 15:06:39 +00:00
ehouse
1fa79026a4 Fix compile error. 2004-05-14 08:59:38 +00:00
ehouse
7e165cf387 fix compile errors non-DEBUG case 2004-05-07 03:55:24 +00:00
ehouse
6688b3b2f4 fix hires scoreboard drawing 2004-05-06 04:11:04 +00:00
ehouse
437cd5e2cd fix so can draw multiline miniwindows. Not working for HIRES yet. 2004-04-30 08:35:51 +00:00
ehouse
e4350f01a6 make progress inversions work for HIRES screens 2004-04-20 04:05:59 +00:00
ehouse
7f0506346f more progress on hi-res (tray tiles); but seems to have broken 160x160 2004-03-18 05:41:59 +00:00
ehouse
70eb614c93 more progress on hires: fix miniwindow; start fixing tray tiles 2004-03-17 04:57:09 +00:00
ehouse
a3f927d056 progress toward highres stuff 2004-03-16 05:25:23 +00:00
ehouse
c3e1dd4077 start hi-res work; fix for API changes 2004-03-13 14:18:28 +00:00
ehouse
7d403f1ae5 fix reverse-highlighting of cells 2004-03-01 02:31:25 +00:00