ehouse
6cbf62d4f0
Draw tiles hanging a bit below board when hidden to allow testing of
...
common case on wince devices.
2008-06-07 23:03:47 +00:00
ehouse
d053f0731f
Fix so curses-only builds and curses build doesn't segfault.
2008-05-26 00:27:48 +00:00
ehouse
321dbb6471
add missing error message
2008-05-24 16:08:13 +00:00
ehouse
1d5446bfdf
Trying to give smartphone users way to use keypad to move tiles to
...
board. Enabling key-to-text works, but constants to turn it off
aren't in cegcc. So for b2 add a quick hack where 1 means first tile
in tray, 7 means last (rightmost). Enable and test on gtk.
2008-05-11 20:29:43 +00:00
ehouse
8a6df572ae
add some consts.
2008-05-06 12:49:37 +00:00
ehouse
f40b534719
fix gtk_draw_vertScrollBoard to scroll bits rather than just letting
...
board inval everything.
2008-04-12 16:50:46 +00:00
ehouse
72457bf28c
add ability to scroll the board by dragging it. add new method
...
util_altKeyDown to allow user to choose between scrolling board and
dragging the hint rect when both are possible. add adjustYOffset;
make it and board_setYOffset more tolerant of out-of-bounds inputs and
use that to simplify calling code.
2008-04-08 03:55:53 +00:00
ehouse
6a83cc94f4
implement util_yOffsetChange; increase pen timer to half second.
2008-03-27 04:12:16 +00:00
ehouse
72ee1032c0
Attempt to find font that best fits string to encosing rect. Works
...
but only with a hack: need to understand pango better.
2008-03-25 12:47:05 +00:00
ehouse
ddafe8b97a
Indicate empty cell with CELL_ISEMPTY rather than an empty string; fix
...
palm to not draw star on top of placed tile.
2008-03-14 09:36:42 +00:00
ehouse
20ea57cf77
Fix errors, all in debug-only code, flagged by __attribute__ format addition.
2008-03-11 12:24:23 +00:00
ehouse
0988159795
add owner param to drawTileMidDrag so can color tiles correctly
2008-03-11 11:48:53 +00:00
ehouse
e5b8de54aa
Add __attribute__ ((format)) and fix problem it flags.
2008-03-10 12:02:53 +00:00
ehouse
a69d763202
rename constants to begin with GTK so they're unique.
2008-03-10 00:51:20 +00:00
ehouse
c26eed3462
merge with drag_n_drop branch: apply patch generated with this command on that branch: svn diff -r 2080:2087
2008-03-08 23:16:21 +00:00
ehouse
0b5a14c424
Add ENABLE_LOGGING define so logging can be used on non-debug builds, e.g. to trace opening of non-debug saved games and prefs files.
2008-02-17 21:48:48 +00:00
ehouse
a16c9a5f08
add -Werror
2008-02-16 19:05:30 +00:00
ehouse
c811943e12
get rid of const-related warnings
2008-02-16 15:49:03 +00:00
ehouse
f3197b00e3
Make a couple of dialogs format for narrower screen and respect keypad buttons.
2008-02-02 20:58:44 +00:00
ehouse
b39063237e
fix perimeter focus clearing and board size setting.
2008-02-02 17:21:57 +00:00
ehouse
caf7a38672
Move toward running curses on a small screen: replace omnipresent menu
...
with one drawn on demand; change size and location of scoreboard and
tray if needed; use wgetch rather than reading stdin to support keypad
keys for navigation. Also stick g_ in front of some frequently used
global names.
2008-02-02 16:56:20 +00:00
ehouse
3b449f3211
fix to build without Bluetooth headers
2008-02-02 16:53:36 +00:00
ehouse
19ea3e1f6e
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
b25ffefb88
Fix to compile and run standalone
2008-01-19 16:03:53 +00:00
ehouse
dfee56609a
Warn user, and refuse to continue, when new game is as host and has no remote players. API
...
changes, so other platforms won't compile until changed.
2008-01-04 14:47:52 +00:00
ehouse
4f65e023e3
fix unused param warning
2008-01-02 01:43:45 +00:00
ehouse
9d42d1b902
Fix compilation errors due to constant name changes -- no change to binary.
2007-12-14 13:06:44 +00:00
ehouse
c2ad749f99
Change util function to use signed type; other cleanup to compile with various features.
2007-12-05 06:28:51 +00:00
ehouse
b527110379
replace all __FUNCTION__ with __func__
2007-12-02 19:13:25 +00:00
ehouse
75b42f36c3
Add files forgotten with last checkin; add additional parameter to
...
addListener so listeners can be removed on reset.
2007-11-28 03:59:26 +00:00
ehouse
42615345c9
Re-add direct-via-ip transport, and implement for linux in order to
...
better test heartbeats. Fix so can play against Palm over BT.
Assertions failing on Linux when reset, but it's otherwise done.
2007-11-26 02:58:25 +00:00
ehouse
044a889d6d
Don't draw negative number of tiles left.
2007-11-25 15:12:22 +00:00
ehouse
321acd1d42
Add and set a compile-time option so comms will set a periodic timer
...
and use it to send and check for heartbeats over any transport.
Caller must supply a reset proc which is called when heartbeat hasn't
been received in too long. No changes required to comms protocol, but
that means the heartbeat interval is fixed at compile time: can't be
negotiated, and the two ends had better agree. Currently tested with
linux host and PalmOS guest, where only the first heartbeat failure is
recovered from. So there's some debugging to be done still.
2007-11-18 23:43:27 +00:00
ehouse
476e164aa1
Deal with incoming fragmented rfcomm packets; log packet contents.
2007-11-15 14:40:56 +00:00
ehouse
bcb25d96b2
fix oversized font when scoreboard miniwindow has two lines.
2007-11-14 05:57:12 +00:00
ehouse
29bb6a7ca9
quick hack at framing rfcomm packets
2007-11-14 05:53:28 +00:00
ehouse
5d3e641082
Add ability via compile-time flag to connect via rfcom rather than
...
l2cap. Works with two caveats: assumes l2cap-style complete packets
(no framing), and has problems with linux sdp system's tendency to
retain records long after sessions are closed.
2007-11-13 15:20:33 +00:00
ehouse
b7044a2dab
Fix typo breaking compile.
2007-11-05 03:42:27 +00:00
ehouse
ebd158ef35
Update BT code to advertise and search sdp records and use psm reported to work with new Palm
...
code. Log btaddr after converting from name.
2007-11-05 03:38:00 +00:00
ehouse
81aa3f9d2e
Update BT code to advertise and search sdp records and use psm reported to work with new Palm
...
code. Get rid of pthreads dependency which was for logging only.
2007-11-05 03:17:07 +00:00
ehouse
38a7c6a87e
Fix tray hanging below main window; draw pending tiles white-on-black as on other platforms.
2007-10-24 12:46:15 +00:00
ehouse
d929af49ad
Instead of three fixed-sized fonts, choose fonts (lazily) based on the size of the rect into which it's to be drawn.
2007-10-23 03:08:47 +00:00
ehouse
941244ce26
Fix so can without BT, and so compiler can be specified to Makefile.
2007-06-02 02:07:45 +00:00
ehouse
92f3f87543
Fix so compiles curses-only, and so curses cell can be 2x1 (for square board)
2007-06-01 02:08:04 +00:00
ehouse
5878ea6018
type name change only
2007-05-26 14:14:01 +00:00
ehouse
e891a26756
substitute macro for common sizeof(x)/sizeof(x[0]) pattern; no generated code change
2007-05-26 14:03:07 +00:00
ehouse
6fcb5b714c
better logging: include function name
2007-03-17 15:38:44 +00:00
ehouse
8796299a5a
include result of strerror in messages logging errno; turn relay on by default (linux)
2007-02-04 01:22:00 +00:00
ehouse
2fe75a19a2
add const to a bunch of char* decls in APIs and variables; no code change
2007-02-03 17:54:20 +00:00
ehouse
916ea4abc2
name change only: Connectedness becomes DeviceRole
2007-02-02 08:34:37 +00:00