ehouse
eccfbb5ccc
don't pass wrong proc ptr
2009-03-02 01:45:16 +00:00
ehouse
5d243cb4f7
minimal test for comparing cegcc versions
2009-02-25 03:45:14 +00:00
ehouse
7248ee8ad9
Make it possible to see comms dialog in read-only mode when role
...
selector is disabled (for game info use of new game dialog.)
2009-02-21 17:03:30 +00:00
ehouse
d5cede0150
Add enum to debug-only logging.
2009-02-14 16:24:06 +00:00
ehouse
7c7eb2310c
Use new bufqueue util
2009-02-09 02:51:43 +00:00
ehouse
e5447c5029
fix leak of packet buffers; get rid of multithread code.
2009-02-07 18:20:16 +00:00
ehouse
11e63134c4
commented-out setting of default relay host name
2009-02-07 18:18:24 +00:00
ehouse
d4de570358
Handle case where packet contains several messages; attempt to send on
...
socket-writable and on receiving message to be sent; cleanup. With
this change full robot-vs-robot game has worked over relay, but not
reliably. I think it's the relay's fault. Still tested only on Win32.
2009-02-01 16:46:00 +00:00
ehouse
8026322e8d
Put back code initiating connection when starting client game.
2009-02-01 16:43:01 +00:00
ehouse
62d247ee49
Helps to compile platforms too before checking in...
2009-02-01 16:20:18 +00:00
ehouse
7556ecf49f
Make it possible to run same binary against relay with relay heartbeat
...
and direct with comms heartbeat. This mostly means changing ifdefs.
2009-02-01 15:50:58 +00:00
ehouse
95a93191be
Beginning of rewrite of socket code for communication with relay,
...
replacing dedicated threads for read and write with non-blocking
sockets driven from the main window proc. So far it can do a
round-trip against the relay on win32, and compiles but isn't tested
on wince.
2009-01-31 18:06:09 +00:00
ehouse
50bd5e875b
comment about APIs to use for implementation (probably the last checkin of this file.)
2009-01-31 18:03:06 +00:00
ehouse
1a78d73208
Turn off SMS by default (pending confirming a way to use the apis in unsigned app); add commented-out NO_DRAW option.
2009-01-31 18:02:02 +00:00
ehouse
09cc644a4c
If smallest bitmap is too big, use it anyway at full size.
2009-01-18 19:52:46 +00:00
ehouse
ff89bee6e8
Pick largest possible bitmap; fix inconsistency between cedict's idea
...
of bitmap format and cedraw's: rows are padded to 8-bit boundary, not
necessarily 16-bit.
2009-01-18 18:29:27 +00:00
ehouse
000f120694
get rid of excess logging (one line)
2009-01-18 18:17:08 +00:00
ehouse
40fcb03441
In tray, when values are hidden draw letters instead of bitmap if
...
they'll fit.
2009-01-17 20:30:49 +00:00
ehouse
ed434c1c67
Scale bitmaps for specials to the size of an M so they look right next
...
to other letters.
2009-01-17 18:49:35 +00:00
ehouse
a21898894c
Include function name in assertion failure message; always print to
...
file before putting up warning.
2009-01-17 18:44:45 +00:00
ehouse
a672de76b9
return TRUE after handling WM_INITDIALOG
2009-01-17 18:41:15 +00:00
ehouse
56039c7438
bug fix: fix reversed width and height params to StretchBlt
2009-01-17 15:45:24 +00:00
ehouse
b77f9c437c
Fix size test for bitmap caching
2009-01-14 13:27:56 +00:00
ehouse
cacf676bfd
Get rid of unused parameter
2009-01-14 13:02:08 +00:00
ehouse
140ac0a597
Use new api. Use small for cell and large for tile still, but now
...
create and cache an actual HBITMAP, and prefer it to letters. This is
needed for Catalan where "L-L" will never fit. Still to be done:
prefer letters to bitmap where they'll actually fit (devices where
tiles drawn wider), and position better in tray. May also want to
allow scaling.
2009-01-13 13:11:05 +00:00
ehouse
5b8c6844a5
cleanup: get rid of confusing but harmless *
2009-01-13 13:03:59 +00:00
ehouse
4939cf1785
Turn on and enable UI for relay and sms transport. relay doensn't
...
work, at least on win32 where threading code is broken, and former is
completely stubbed out.
2009-01-05 14:13:40 +00:00
ehouse
8a47aa177d
Always use GetForegroundWindow to find parent
2009-01-05 14:06:52 +00:00
ehouse
4fbb1c9662
add controls for sms connecting
2009-01-05 14:05:56 +00:00
ehouse
f06d08a793
Fix to compile with relay enabled and not STANDALONE_ONLY. Verified
...
that win32 build can open games saved by previous version, but nothing
else (e.g. use of network or even dialogs to set up relay connection
parameters.)
2009-01-04 00:00:45 +00:00
ehouse
227a58d115
Since there's now a flag indicating whether to show the value of a
...
tile, make value unsigned. Adjust/fix platforms. Add cmdline flag to
linux apps for hiding values.
2008-12-29 03:09:35 +00:00
ehouse
7737f55ca8
rename variables; fix compiler warning.
2008-12-20 04:25:41 +00:00
ehouse
8e2e71a3b7
When values are hidden, draw letters as large as possible in the tile.
2008-12-13 07:34:16 +00:00
ehouse
6453f49e67
App name and game name don't fit most titlebars, so use app name only
...
when game has none yet.
2008-12-13 07:29:47 +00:00
ehouse
3ab61e4264
Use Ok for stringbox, Done for Saved games dialog; next release to be
...
rc1, not b7
2008-12-13 04:39:06 +00:00
ehouse
554b204cf5
Provide default player names in game info dialog rather than when
...
creating the very first game to fix bug where creating a game with n+m
players from a saved game with n yields m blank default names.
2008-12-12 13:42:52 +00:00
ehouse
08cf93d526
Make tray tiles one pixel taller, extending all the way to bottom of
...
screen.
2008-12-12 13:40:41 +00:00
ehouse
a0a96fe020
Back out change: button to dismiss Saved games dialog is "Done" again,
...
not "Ok".
2008-12-12 05:28:53 +00:00
ehouse
d0222385fb
Warn when unable to open a saved game (generally when an older version
...
of the app tries to open game saved by newer version.)
2008-12-11 13:48:59 +00:00
ehouse
4baa620298
Don't open saved games dialog unless current game has a name:
...
cancelling name request cancels saved games dlg too.
2008-12-08 05:51:21 +00:00
ehouse
481374936d
Don't remove extension if there's isn't one (fixes new segfault.)
2008-12-08 05:50:25 +00:00
ehouse
ad459c8a0a
Add appropriate icon flags to all uses of MessageBox; remove a couple
...
of unnecessary Cancel buttons.
2008-12-07 16:24:26 +00:00
ehouse
ae9c6f1fe3
Fix other sites putting up dialogs claiming main window as parent when
...
it isn't.
2008-12-07 05:21:13 +00:00
ehouse
670d0be212
Don't let smartphone users set hintlimits checkbox, and explain
...
why. Fix bug calling MessageBox with main window ptr from dialog.
Include name of preexisting file when warning user who enters it while
saving/renaming.
2008-12-07 01:30:18 +00:00
ehouse
44188ee1af
up version to b7
2008-12-06 22:21:38 +00:00
ehouse
4748e0dc9f
Use SetBkMode to prevent overlapping tile face/value pairs from
...
erasing each other.
2008-12-06 22:14:40 +00:00
ehouse
fb9ea8b64f
Mods to saved games dialog: allow to rename the current game; after
...
renaming or duplicating a game, make that new name the one initially
selected in the listbox; remove sorting code relying on OS to sort
when CBS_SORT set.
2008-12-06 20:28:01 +00:00
ehouse
6693565ad5
set text color before drawing star bitmap to make color consistent;
...
add utility function for setting colors to reduce code size.
2008-12-06 16:22:43 +00:00
ehouse
07e3b26e60
Quash some compile-time warnings. snprintf instead of sprintf.
2008-12-06 15:59:30 +00:00
ehouse
03d12bacd3
Add testcases for Treo-sized screens.
2008-12-04 06:17:14 +00:00