Commit graph

2382 commits

Author SHA1 Message Date
ehouse
a672de76b9 return TRUE after handling WM_INITDIALOG 2009-01-17 18:41:15 +00:00
ehouse
7201ef2fa8 Tweaks to bitmaps; build for wince by default 2009-01-17 18:39:08 +00:00
ehouse
a24f743856 Don't pass valid bitmaps ptr when drawing blank tile. 2009-01-17 18:24:18 +00:00
ehouse
56039c7438 bug fix: fix reversed width and height params to StretchBlt 2009-01-17 15:45:24 +00:00
ehouse
74c6457f83 add emacs mode line 2009-01-14 13:41:25 +00:00
ehouse
b77f9c437c Fix size test for bitmap caching 2009-01-14 13:27:56 +00:00
ehouse
088d96f403 Get rid of bogus assert 2009-01-14 13:02:38 +00:00
ehouse
cacf676bfd Get rid of unused parameter 2009-01-14 13:02:08 +00:00
ehouse
b40d8e3f2d Don't pass new bitmaps struct to draw code uninitialized 2009-01-14 12:51:55 +00:00
ehouse
f387cd5fa2 Add sms support, largely untested. 2009-01-13 13:33:56 +00:00
ehouse
b45fc82771 Allow language Makefile to specify encoding. Pass to perl and c++
dict builders, using it to open files and to determine whether to do
multi-to-wide conversion.
2009-01-13 13:32:07 +00:00
ehouse
2691b00dc9 Add target to build all languages. Stops on Swedish at the moment. 2009-01-13 13:19:15 +00:00
ehouse
dd81444a45 To support Catalan, add Makefile and bitmaps for three special tiles.
The first of these, L-high-dot-L, requires Unicode to be properly
drawn, but the current dict format doesn't support it so it'll be L-L
for now.  Bitmaps are still rough.
2009-01-13 13:17:58 +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
77381a1d5d Use new draw API but same bitmap as always (large in tile, small in
cell.)  In cases where bitmap and text provided, prefer bitmap.
2009-01-13 13:02:17 +00:00
ehouse
bf0d27388a change draw api so all available bitmaps (only 2 in current format)
can be passed for tile and cell drawing
2009-01-13 12:57:56 +00:00
ehouse
a719d6fc50 Add type Letter to represent what are Tiles in Crosswords:
lang-independent indices into the set of letters in use.  Should be no
change in functionality or code generated.
2009-01-07 05:13:45 +00:00
ehouse
0ba80fa89f Fix compiler warnings. Should be no change in generated code. 2009-01-07 05:03:13 +00:00
ehouse
ddfcfefb7b Turn on relay by default. 2009-01-07 04:54:23 +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
eddd7fe55b Cleanup; add sms example to usage() 2009-01-05 02:11:13 +00:00
ehouse
ab8741f8a9 Use the new common/strutils binToSms routines. For now, use glib's
too and assert output is the same.
2009-01-05 02:10:27 +00:00
ehouse
47f6ab7da3 Implement, with help from glib base64 source, routines to turn binary
into SMS-compatible strings and back.  This should ensure that the
format is cross-platform.
2009-01-05 02:08:55 +00:00
ehouse
bf77466ea0 cleanup. SMS, not BT, is the default conType for other than Palm. 2009-01-05 02:07:30 +00:00
ehouse
ad9d0b7ee1 Remove newlines from debug statements. 2009-01-05 01:59:04 +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
5e905686fa Cleanup to build with relay enabled; don't enable any network features
if STANDALONE_ONLY is defined.
2009-01-03 23:56:20 +00:00
ehouse
73c32f0441 New stream version makes standalone and multi-device build formats the
same so new Wince can open files saved by current version.  Tweaks to
build with relay and heartbeat turned on.
2009-01-03 23:54:25 +00:00
ehouse
84bd5f24cc Fix compile errors using latest gcc (fread etc must have return value checked) 2009-01-03 18:12:34 +00:00
ehouse
0fd6eb0aea tweaks to stop/start script to run on an ISP's server better 2008-12-31 04:26:37 +00:00
ehouse
9acc3ce278 Don't parse the same conf file twice in a row. 2008-12-31 04:21:03 +00:00
ehouse
241d22262e start counter for uptime at launch 2008-12-31 04:19:23 +00:00
ehouse
0bd95617e9 include new file in tarball 2008-12-31 04:16:55 +00:00
ehouse
489d59931c include svnversion output in tarball 2008-12-30 05:17:00 +00:00
ehouse
1d4c68d8d2 replace int with bool where appropriate; fix to compile with newer g++ 2008-12-30 05:13:30 +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
fa4adbfcea Add support to gtk app for tranport over "sms", with files containing
base64-encoded data as the messages.  Make necessary changes to comms.
This is the foundation for doing real SMS transport on handhelds.
Currently a full robot game works for two gtk clients provided the
server is launched first.
2008-12-29 01:35:29 +00:00
ehouse
7737f55ca8 rename variables; fix compiler warning. 2008-12-20 04:25:41 +00:00
ehouse
23b07772c0 invalCellsUnderRect didn't work for rects not intersecting board; fix. 2008-12-16 05:30:25 +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
3e749c898c Indicate tiles whose values should be hidden with a new bit rather
than a negative value.
2008-12-13 07:32:53 +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