Commit graph

1608 commits

Author SHA1 Message Date
ehouse
12daa9bfbb Turned on leak-checking at shutdown for debug version, and fixed leaks and
crashes in destructors that had never been called before.  Seems now to 
free all allocated memory before exiting.
2006-05-30 05:12:02 +00:00
ehouse
995192ad56 trivial optimization: add 1 only once 2006-05-30 04:34:35 +00:00
ehouse
d66c27cd35 To show it and to prevent it's being cleared, write current password
into field in game info dialog.
2006-05-28 18:16:08 +00:00
ehouse
b498d3d18d silence compiler warnings. 2006-05-28 16:16:46 +00:00
ehouse
091dc33ae8 fix scrolling and invalidation for flipped boards, and especially
where the board is still not fully visible when the tray is hidden.
2006-05-28 16:08:58 +00:00
ehouse
c3bcff83e0 use signed types to avoid overflow and disappearing scores 2006-05-28 16:02:16 +00:00
ehouse
9776c57eea center letter in tile even when it's too big. 2006-05-28 15:04:57 +00:00
ehouse
35f8004d43 fix a couple of compile warnings 2006-05-28 14:53:02 +00:00
ehouse
e252d51669 define CALLBACK to quiet warnings for CE build. 2006-05-28 00:42:34 +00:00
ehouse
5846a0f8f6 Move button size #defines into .rc file. They're scaled by the time C
code sees them and so shouldn't be relied on outside the .rc file.
2006-05-28 00:41:44 +00:00
ehouse
9f0df402ce Calculate old window width correctly when figuring new width. Fixes
problem of buttons drawn too close to right edge.
2006-05-28 00:40:28 +00:00
ehouse
af7a0ad216 Before putting dialog into landscape mode, make sure it won't be wider
than the screen.  That is, don't be fooled when in portrait mode by a
screen height that's SIP-reduced.
2006-05-27 22:52:10 +00:00
ehouse
21df8e09d8 Cleanup password dialog 2006-05-27 22:47:33 +00:00
ehouse
fd0e2370aa Lots of little tweaks to dialogs to get them looking better and to
work better in landscape mode; got rid of multiple DEFPUSHBUTTONs.
2006-05-27 22:21:21 +00:00
ehouse
9558cc902e Lots of little tweaks to dialogs to get them looking better and to
work better in landscape mode; got rid of multiple DEFPUSHBUTTONs.
2006-05-27 22:21:09 +00:00
ehouse
62fe2be84b Move buttons in landscape mode for color sel dialogs too. 2006-05-27 22:19:30 +00:00
ehouse
c2ddb62591 modify API for "portraitizing" dialogs, and space the buttons evenly
rather than stacking all from bottom.  This doesn't quit work on ce
since GetWindowInfo isn't available and IsWindowVisible does the wrong
thing.
2006-05-27 17:18:42 +00:00
ehouse
75431f774c strcat becomes strcpy: trivial optimization 2006-05-25 04:07:49 +00:00
ehouse
3ca36f57fc For dialogs in portrait-mode, move OK and Cancel buttons to the right
side and shrink up from the bottom
2006-05-25 03:41:32 +00:00
ehouse
fbe384d431 remove trailing <cr> to sometimes eliminate scrollbar 2006-05-23 02:01:26 +00:00
ehouse
b6d30d9009 clear multiple tile selection when trade ends even if cancelled 2006-05-23 01:53:18 +00:00
ehouse
633d9eef55 Get rid of hard-coded tile number limit in server_formatRemainingTiles 2006-05-23 01:52:20 +00:00
ehouse
f3c56df8aa n## Lines starting with '## ' will be removed from the log message.
change version string to include b8
2006-05-21 02:09:03 +00:00
ehouse
033a19e032 Increase size of buffer used to accumulate letters for "tiles left"
dialog.  French has 15 "E"s, and the old buffer size allowed an
overflow (crash) when at least 13 of any letter were left.
2006-05-21 01:54:48 +00:00
ehouse
54468b01bb update nHiddenRows so scrolling finally works 2006-05-20 06:22:33 +00:00
ehouse
c096b77561 draw lines rather than bullets to indicate whose turn it is in vertical mode 2006-05-20 06:21:53 +00:00
ehouse
b51cdd32b0 Change misleading function name; no code change. 2006-05-19 13:45:48 +00:00
ehouse
e8273bc9f0 Finish scrollbar work by passing number of visible rows to
util_trayHiddenChange, which means an API change.  In board, calculate
bottom of board based on bottom of tray when tray is hidden, and round
so that it's an exact multiple of cell height.  In wince, take
advantage of the new parameter to fix the scrollbar so that very
constrained boards can be scrolled even when the tray is hidden.
2006-05-19 13:44:05 +00:00
ehouse
2658da4563 Reset divider location on new game. 2006-05-19 13:31:18 +00:00
ehouse
cbd67a5e21 First attempt to set board bounds based on tray bottom if tray
overlaps board.
2006-05-17 06:12:40 +00:00
ehouse
7bc6b18885 Replace overlap param with nHidden to give more flexibility in
creating situations where board must be scrolled.
2006-05-17 06:10:24 +00:00
ehouse
6b80b3c0bc Include output of svnversion in Palm version's About dialog. For
Catalan and Spanish as well as English.  There's also some character
conversion in the former two that may be linked to my local LANG
setting now being en_US.utf8.  May need to revisit if there are
problems.
2006-05-15 04:24:30 +00:00
ehouse
4c1f0f7454 factor out updateScrollInfo so I can update scroller live once I get
super-small boards figured out.
2006-05-14 15:28:57 +00:00
ehouse
e28e40a04c for vertical scoreboards, force miniwindow to be entirely inside the board. 2006-05-14 15:27:29 +00:00
ehouse
92012adb50 move scrollbar into its own box so it doesn't force buttons to be over-tall 2006-05-14 15:26:21 +00:00
ehouse
b5bd5e74d2 Incorporate svnversion output in About box; add CAB target 2006-05-14 15:22:48 +00:00
ehouse
0e5e3868cf Incorporate svnversion output in usage() 2006-05-14 14:47:32 +00:00
ehouse
11322f0e4d Since board can now sometimes only partially hide tray, introduce
distinction between obscuring and completely hiding.  In former case,
erase the tray rather than draw it partially hidden.  This means
drawing the tray before rather than after the board, which is a big
change that so far doesn't seem to have hurt anything.  If it does, it
might be necessary to draw it before and after the board.
2006-05-12 08:03:08 +00:00
ehouse
9367d73e24 add compile-command 2006-05-12 07:59:38 +00:00
ehouse
db4bd5c1cd make tray hide button toggle hidden state 2006-05-12 07:59:21 +00:00
ehouse
50e03abdea rewrite score formatting to put is-turn bullets above/below for
vertical scoreboard; reduce inter-line spacing and otherwise tweak
drawing.
2006-05-12 07:58:31 +00:00
ehouse
8a0b2f3bbb fix compiler warning 2006-05-12 07:55:36 +00:00
ehouse
bdc2300f84 Add ability, in win32 version, to specify height and width on wine's
commandline -- to ease debugging of layout code.
2006-05-12 07:54:59 +00:00
ehouse
37250643ee Turn on -Wall for compilers, and fix warnings that result. Got 'em
all for win32 build, but some remain for wince that I'm unable to fix.
2006-05-12 07:25:43 +00:00
ehouse
7d9d97cd88 Turn on -Wall for compilers, and fix warnings that result. Got 'em
all for win32 build, but some remain for wince that I'm unable to fix.
2006-05-12 07:17:35 +00:00
ehouse
8d67d30c3d minor code improvement 2006-05-11 03:02:11 +00:00
ehouse
c9606b6d0b fix too-tall cells in vertical scoreboard case 2006-05-11 03:01:39 +00:00
ehouse
a1b0a11baa minor fixes to drawing spacing (what I meant to check in) 2006-05-11 03:00:50 +00:00
ehouse
6c8d4c663f minor fixes to drawing spacing 2006-05-11 02:58:36 +00:00
ehouse
a774a73778 tweak score layout, and remove a U8 that was overflowing on win32 2006-05-10 13:42:44 +00:00