Commit graph

212 commits

Author SHA1 Message Date
ehouse
9776c57eea center letter in tile even when it's too big. 2006-05-28 15:04:57 +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
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
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
0e5e3868cf Incorporate svnversion output in usage() 2006-05-14 14:47:32 +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
8d67d30c3d minor code improvement 2006-05-11 03:02:11 +00:00
ehouse
615ee9e46e fix layout for vertical scoreboard option 2006-05-09 12:31:41 +00:00
ehouse
dc0cdfc53a catch up with API change 2006-05-09 04:04:56 +00:00
ehouse
4c58ee9e2f catch up with API changes 2006-05-05 12:49:02 +00:00
ehouse
b0c4e9e91e Include name of dict so it can get printed. 2006-04-30 13:58:24 +00:00
ehouse
4e2b080be5 Add, and use, stream_putString. Saves 500 bytes on win32. 2006-04-25 13:31:15 +00:00
ehouse
13b7fa62aa Add macros to draw.h, and use 'em for wince, so that a platform can choose to call draw.h methods via a vtable or static linking. 2006-04-01 21:01:20 +00:00
ehouse
ea85e6a3f6 add install target 2006-02-27 00:08:32 +00:00
ehouse
8f72bf6b56 new directories to ignore 2006-02-18 14:08:04 +00:00
ehouse
9ff5259d4e 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
f142ef61db make XP_UCHAR signed to avoid warnings calling string.h funcs 2006-02-18 06:36:39 +00:00
ehouse
00459487c1 fix warning 2006-02-18 06:35:48 +00:00
ehouse
00142f8d80 use __VA_ARGS__ in debug macros 2006-02-17 07:29:25 +00:00
ehouse
199ecd10a2 clean up usage 2006-02-17 07:28:41 +00:00
ehouse
cd0b0d815e don't include in curses-only build 2006-02-17 07:28:17 +00:00
ehouse
2b2635aa8f formatting only 2006-02-17 07:27:58 +00:00
ehouse
3f0353c681 makefile cleanup 2006-02-17 07:27:36 +00:00
ehouse
dcd31cd092 update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
ehouse
5581fd064e don't connect to relay unless have something to send 2005-10-30 16:28:52 +00:00
ehouse
c85d3d88d9 add a const 2005-10-30 05:06:41 +00:00
ehouse
6a729ec2fa add error message; cast to avoid compile warnings 2005-10-30 05:06:23 +00:00
ehouse
b8d80a9c2b add a few consts 2005-10-30 05:05:45 +00:00
ehouse
76d35deea5 fix misspelling; tweak error messages 2005-10-19 03:21:19 +00:00
ehouse
f3869d453a new error message 2005-10-14 08:25:51 +00:00
ehouse
90f57ef2e5 catch up with API change 2005-10-01 15:53:56 +00:00
ehouse
a3305e2ca9 just log some messages so user interaction not required. 2005-09-14 05:11:29 +00:00
ehouse
6474320381 add enough timer support for heartbeat; fix redraw bug 2005-09-09 03:14:11 +00:00
ehouse
731b0fb813 add linuxFireTimer 2005-09-09 03:12:58 +00:00
ehouse
6b3b5c0f90 move fireTimer to linux-common code 2005-09-09 03:12:24 +00:00
ehouse
ecce7f9d2e add an extra slot as on other platforms 2005-09-09 03:06:27 +00:00
ehouse
ad7b25eb52 add missing header. (Did gtk change?) 2005-09-09 02:57:14 +00:00
ehouse
479805ee08 add role to newgame dialog 2005-09-05 05:31:11 +00:00
ehouse
f4b5459569 add error message; don't assert (crash) when socket closes. 2005-09-04 20:31:34 +00:00
ehouse
8f796ca6bb new (commented-out) info message 2005-09-03 18:36:08 +00:00
ehouse
377e514f0b for testing, add -H option to prevent client from sending heartbeat
messages to relay.
2005-09-03 15:39:15 +00:00
ehouse
238036ff9d Add strings for error codes for relay disconnect events. 2005-09-03 06:58:05 +00:00
ehouse
889ebf6ce9 catch up with API changes 2005-09-02 06:24:47 +00:00
ehouse
df5c274c31 constant name changed 2005-08-21 14:18:56 +00:00
ehouse
0a8b5bb563 Get rid of unused param 2005-07-14 02:54:47 +00:00
ehouse
a26549afa9 Pass protocol version code with connect request, and return error if
it isn't what relay can handle.  Report error to user.
2005-07-06 01:36:52 +00:00
ehouse
ca6c35ad78 cancel old timer before setting a new one 2005-07-05 20:59:42 +00:00
ehouse
c24a8ca79b remove logging 2005-06-25 05:44:30 +00:00
ehouse
86a37e0d13 implement new util_setTimer, and handle heartbeat timer 2005-06-23 04:20:00 +00:00
ehouse
8631466589 fix formatting; make board wide enough for timer. 2005-05-30 00:20:42 +00:00
ehouse
22c492b450 add justification to draw_string_at to better position using pango. 2005-05-30 00:03:58 +00:00
ehouse
8fc13f1548 give tiles a background color 2005-05-29 21:17:23 +00:00
ehouse
1e6f0c33a6 Switch to GTK 2.n. 2005-05-29 20:40:38 +00:00
ehouse
d9e203fd6d New fields in drawCtxt for pango-based text layout; other tweaks for
switch to GTK 2.n.
2005-05-29 20:39:01 +00:00
ehouse
7c206d6d16 huge set of changes to get working with GTK 2.n. Type changes and
casts, rewrite of img-button creation, tweaks in startup ordering that
may not have been necessary.
2005-05-29 20:37:35 +00:00
ehouse
57bb5b1e80 huge set of changes to get working with GTK 2.n. Use pango for text
drawing, getting rid of all GdkFonts; get rid of clipping until I
understand why it was prevent all drawing.  Etc.
2005-05-29 20:32:48 +00:00
ehouse
655ae045c4 switch to g_signal_connect 2005-05-29 20:17:09 +00:00
ehouse
df8bfef99d formatting fixes; casts for GTK 2005-05-29 19:37:42 +00:00
ehouse
d2e64ff324 add linux_util_addrChange (stubbed out) 2005-04-03 16:56:39 +00:00
ehouse
2ccdf6878a fix for api change 2005-04-03 02:47:08 +00:00
ehouse
e3b319f341 don't use null comms 2005-03-25 13:41:18 +00:00
ehouse
3e281299ed check for null comms before using 2005-03-25 03:13:10 +00:00
ehouse
1490fe9fea define XP_LD 2005-03-20 21:03:18 +00:00
ehouse
3d54ec402a fix and cleanup linux client to move to using tcp. Add the ability to
deal with socket dying and (maybe) being replaced.  Only connect on
demand now, when first packet's ready to go.
2005-03-19 22:07:53 +00:00
ehouse
820664d212 add XP_STRNCPY 2005-03-19 22:06:23 +00:00
ehouse
90cca0c92b use compiler flags that ease debugging 2005-03-15 06:22:48 +00:00
ehouse
db8a6d0eb2 move playerNum into dsi so can be used in formatting score; show
most recent turn (like symbian 80)
2005-03-15 03:29:37 +00:00
ehouse
670f5d8673 move playerNum into dsi so can be used in formatting score 2005-03-15 03:27:24 +00:00
ehouse
f280b6755d api change 2005-03-12 05:33:40 +00:00
ehouse
955f2180db deal with tcp streams the same in curses as on gtk. Both work now
with the relay.
2005-03-12 05:33:30 +00:00
ehouse
40ac233a92 fix misspelling 2005-03-09 15:12:57 +00:00
ehouse
1fba8494f3 Replace UDP-based messaging with TCP. Stream protocol says distinct
message is length plus data.  Use non-deprecated gtk select-like
function.  With these changes can play full games through the relay on
gtk.  Untested on ncurses but probably broken.
2005-03-06 18:07:00 +00:00
ehouse
fb4881a285 API change 2005-01-25 04:41:47 +00:00
ehouse
958754dbfe util function sig change 2005-01-13 04:30:50 +00:00
ehouse
48f4caeb7a add missing param 2004-12-11 04:17:07 +00:00
ehouse
1b0ab6037f add HintAtts param to draw_drawBoardArrow 2004-11-14 16:27:51 +00:00
ehouse
688132b919 Make linux compile with latest changes 2004-11-09 02:06:32 +00:00
ehouse
74556c2b8d fix linux build: set up super's vtable 2004-10-30 17:01:20 +00:00
ehouse
bfb30a57f7 fix help message 2004-09-30 01:49:46 +00:00
ehouse
2bc41f6043 turn on new features by default 2004-06-27 05:03:48 +00:00
ehouse
81b6bde472 cleanup; use new API for limiting tile use from tray. 2004-06-27 05:01:18 +00:00
ehouse
afa67f1a3c cleanup for no hintlimit feature case 2004-06-27 04:35:42 +00:00
ehouse
03011152d6 cleanup for no hintlimit feature case; add new param 2004-06-27 04:35:20 +00:00
ehouse
f4708644d0 hint-rect on by default (until UI or cli option added) 2004-06-18 13:52:49 +00:00
ehouse
6acff20b42 draw borders on cells that are part of hint-constraint rect 2004-06-15 01:44:39 +00:00
ehouse
00c0b86d1e only call board_handlePenMove when mouse button is down. 2004-06-15 01:41:39 +00:00
ehouse
dca1e27fa5 formatting fixes; add string for attempt to undo tile assignment. 2004-05-14 09:05:45 +00:00
ehouse
8f1f118e68 catch up with score-summary changes 2004-05-12 05:46:08 +00:00
ehouse
67c69ca278 new string as part of displaying last turn when score tapped 2004-04-30 08:38:46 +00:00
ehouse
cc611c0a44 add XP_STRCAT 2004-04-30 08:37:30 +00:00
ehouse
bef321eb6b fix formatting 2004-02-28 05:23:10 +00:00
ehouse
354bd96db4 make util_userQuery return bool 2004-02-17 04:00:12 +00:00
ehouse
f76f18e3ca draw_boardBegin returns bool now 2004-02-17 03:58:40 +00:00
ehouse
47b5622380 fix formatting 2004-02-17 03:56:12 +00:00
ehouse
4c693e0bb8 drawBegin sig change 2004-02-13 13:54:52 +00:00
ehouse
b1749fcd9c tweak dict-building sanity check 2004-01-25 14:31:34 +00:00
ehouse
5cb1aea0f9 set new dict variable 2003-12-14 17:55:45 +00:00
ehouse
3ed35abaac new file; -D option to workaround extra event leftover from probably
bug in new nTiles select dialog.
2003-11-30 19:10:47 +00:00
ehouse
60756d901d new slot 2003-11-30 19:09:39 +00:00
ehouse
cf1be1095a add test of board_requestHint change: limit number of tiles used in
hint.
2003-11-30 19:08:55 +00:00
ehouse
4d7df46fac folloe board_requestHint signature change 2003-11-30 19:07:01 +00:00
ehouse
21018e5199 first checked in 2003-11-30 19:06:22 +00:00
ehouse
aafffc08b5 first checked in 2003-11-16 17:30:19 +00:00
ehouse
13e70c583b new menuitems (not yet used); blank-pick API change 2003-11-16 17:28:54 +00:00
ehouse
d15b66101d common code does more picking work now. 2003-11-16 17:25:46 +00:00
ehouse
10a28d17da util_userPickTile replaces util_askBlankFace 2003-11-16 17:17:04 +00:00
ehouse
8fb71729cc first checked in 2003-11-16 17:15:41 +00:00
ehouse
a2a1baaa8c remove code to new shared file 2003-11-16 17:14:28 +00:00
ehouse
37ef7957ce new files; commented-out -D option to turn on tile picking 2003-11-16 17:14:01 +00:00
ehouse
4c17ed9705 gettimeofday call burried in an assert; need to work for non-debug
builds too.
2003-11-01 05:56:24 +00:00
ehouse
6a57cef012 first checkin 2003-11-01 05:35:29 +00:00