Commit graph

350 commits

Author SHA1 Message Date
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
353d65987d new directories and file extensions to ignore 2006-02-17 07:33:08 +00:00
ehouse
abf185fd85 cast threadstart func ptrs. Not sure why... 2006-02-17 07:31:21 +00:00
ehouse
04ead8566c tie aygshell to Wince rather than making it separate feature 2006-02-17 07:30:54 +00:00
ehouse
00142f8d80 use __VA_ARGS__ in debug macros 2006-02-17 07:29:25 +00:00
ehouse
35b7a7900f get rid of printf 2006-02-16 03:32:19 +00:00
ehouse
fa77bb4a34 make color buttons owner-draw, and draw them. This fixes bug where
all are the background color, and seems to fix win32 build altogether.
Wince build still needs to respond to the buttons being pressed.
2006-02-16 03:31:44 +00:00
ehouse
49801fb0ee provide sensible path for saved files on win32 so state can be preserved 2006-02-15 13:09:36 +00:00
ehouse
fb410e4011 use native color-picker on win32 2006-02-14 04:54:28 +00:00
ehouse
c42c6a6551 turn off broken color sel until have time to fix 2006-02-14 04:52:31 +00:00
ehouse
ea9c2ca48b better way of doing debug builds 2006-02-07 14:46:08 +00:00
ehouse
c767c89d64 back out change that had window drawing too narrow 2006-02-07 14:45:30 +00:00
ehouse
3559618e25 separate debug build; pass flags to linker so OS won't run in emulation mode 2006-02-06 15:00:46 +00:00
ehouse
1dcee125b9 lots of tweaks toward a beta build on linux. works now, but takes a
hex editor.
2006-02-06 04:48:20 +00:00
ehouse
d0352dfa80 attempt to show different title when in debug mode 2006-02-06 04:44:09 +00:00
ehouse
b495ccc9e2 tweak -- but these will be going away as soon as mingw and debian's
pocketpc-sdk catch up with me.
2006-02-06 04:43:32 +00:00
ehouse
bc6cfacedb cleanup closing in on building correctly -- which now works, though it
takes a hex editor.  May have fixed a bug with a missing CloseHandle
call.
2006-02-06 04:41:14 +00:00
ehouse
2e901dde4e type changes to stop warnings 2006-01-31 14:40:49 +00:00
ehouse
9f42faee6d missed one ce-specific struct. This makes it work on ce! 2006-01-31 06:41:49 +00:00
ehouse
3ef2bf9c8e pass the right param to WinMain. This makes it work on ce! 2006-01-31 06:41:16 +00:00
ehouse
6266de224e use debhacks; add flags to compile for wince 2006-01-28 19:05:39 +00:00
ehouse
df72a59423 use debhacks 2006-01-28 19:03:10 +00:00
ehouse
3174ff031f use debhacks; ifdef out cmdbar stuff which debian tools don't support yet 2006-01-28 19:02:04 +00:00
ehouse
df51f38946 first checked in. may have bugs 2006-01-28 18:58:04 +00:00
ehouse
dcd31cd092 update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
ehouse
21c28dfcd9 add random seed in win32 case 2005-11-27 23:11:05 +00:00
ehouse
efe72f242e need to set flag before making calls that will result in a stream of
messages.
2005-11-27 22:24:25 +00:00
ehouse
c4643ee5b4 Increase size of tray and fonts for win32; turn on windoze-style
menus.
2005-11-27 22:06:04 +00:00
ehouse
23232d25ba Turn off STUBBED_DICT -- can now load and execute from an .xwd file
running on WINE.
2005-11-27 21:39:06 +00:00
ehouse
62b055b577 first checked in. Builds for Win32, but crashes on XP after drawing
its board.
2005-11-27 20:27:46 +00:00
ehouse
47e21c4169 hide new obj dirs 2005-11-27 20:17:39 +00:00
ehouse
655dbada6b changes for gcc compilation: conditionally define out stuff that
doesn't work on win32 (e.g. CommandBar).
2005-11-27 20:17:09 +00:00
ehouse
4d2ed4f0f6 changes for gcc compilation: fix syntax errors and API usage,
conditionally define out stuff that doesn't work on win32
(e.g. CommandBar).
2005-11-27 20:16:43 +00:00
ehouse
908f4d1952 fix for STUBBED_DICT case 2005-11-27 20:13:42 +00:00
ehouse
0df6b6c049 OpenFileForMapping doesn't seem to exist in win32 -- or at least not
in MinGW's view.
2005-11-27 20:13:13 +00:00
ehouse
eadf7d2d43 for gcc: fix caps and remove commas after last item in array 2005-11-27 20:10:06 +00:00
ehouse
09b8306028 fix caps; use rand() on win32 2005-11-27 20:09:15 +00:00
ehouse
a07b388e7a change how struct is defined for gcc 2005-11-27 20:06:36 +00:00
ehouse
acbd41334f fix syntax errors; other catch up with changes 2005-11-27 20:05:33 +00:00
ehouse
0b96f001a5 fix syntax error 2005-11-27 20:04:46 +00:00
ehouse
5ed2892250 fix capitalization of header file -- which gcc cares about. 2005-11-27 20:04:06 +00:00
ehouse
24ca68e96e remove connect info button, instead bring it up every time role
changes to one that needs it.
2005-10-06 02:34:07 +00:00
ehouse
d1298e2911 make network play on by default 2005-09-07 12:32:29 +00:00
ehouse
4ff2f68bd7 add strings for relay errors 2005-09-07 12:31:32 +00:00
ehouse
bd121ed939 protect logging with mutex since happens from multiple threads now. 2005-08-21 14:54:49 +00:00
ehouse
05e9bd2d12 flesh out interaction with comms. Now able to play a complete game vs
linux version over GPRS.
2005-08-21 14:36:11 +00:00
ehouse
cca35b28db tweak how timers stored 2005-08-21 14:07:29 +00:00
ehouse
a24e7d18b3 timeout isn't an assertion failure 2005-08-21 14:07:12 +00:00
ehouse
2b1dd9ec55 use renamed constant 2005-08-21 14:05:29 +00:00
ehouse
ee52261a9c add vc60.pdb 2005-07-30 02:07:20 +00:00
ehouse
b3e26adaf8 make some conn-related IDs conditional 2005-07-30 02:05:59 +00:00
ehouse
4f3a24eb78 add cesockwr.o 2005-07-30 02:04:29 +00:00
ehouse
3b79617c61 Add and use driver for communication over TCP. Driver uses two
threads, reader and writer, on a single socket.  With this checkin a
connect request reaches the relay and a response comes back and is
passed to and recognized by the common code.  A full game should now
work, but hasn't been tried.  Nor is there any handling of socket
errors, retries, etc.
2005-07-30 02:02:49 +00:00
ehouse
7d79e79105 tweak conn dialog 2005-07-30 01:51:24 +00:00
ehouse
19734cc053 begin work of allowing multi-device play over WiFi/Cellular: add
dialog to gather params, save 'em, and stub out send proc.  Still need
to debug a bit, and add threads to send/receive packets.
2005-07-23 15:31:21 +00:00
ehouse
746e69b315 add assertion on null string 2005-07-23 15:16:26 +00:00
ehouse
0a8b5bb563 Get rid of unused param 2005-07-14 02:54:47 +00:00
ehouse
6ca28e44e7 fix compile error 2005-07-13 12:35:38 +00:00
ehouse
91f0094008 fix compile error! 2005-06-30 01:51:40 +00:00
ehouse
7c4858887a Refactor ce_dictionary_make so that it returns NULL rather than an
broken dict when the file's missing or corrupt.  Casts to stop
warnings.
2005-06-30 01:48:07 +00:00
ehouse
52939cdc41 change dialog title when it's called from new game menuitem 2005-06-30 01:44:56 +00:00
ehouse
b14562e883 Refactor ce_dictionary_make so that it returns NULL rather than an
broken dict when the file's missing or corrupt.
2005-06-30 01:36:51 +00:00
ehouse
7a306d1b7e copy null byte along with rest of string 2005-06-28 04:42:08 +00:00
ehouse
69a7080854 up version to b4 to match next tag 2005-06-27 04:01:51 +00:00
ehouse
57e20c98d5 fix compile warnings 2005-06-23 14:12:09 +00:00
ehouse
61f86ae77d util_setTimer changes 2005-06-23 14:09:20 +00:00
ehouse
095a9da62a add a couple of consts to fix warnings 2005-06-13 14:34:01 +00:00
ehouse
852218f074 fix DEBUG compile error 2005-06-13 14:33:05 +00:00
ehouse
5f0648c840 fix scrolling; resize board, enabling scrolling, when SIP is revealed.
And make it possible for user to reveal it.
2005-06-13 14:29:49 +00:00
ehouse
3eb04b4161 add debug-version logging to catch dictionary corruption 2005-06-13 13:36:26 +00:00
ehouse
215885af76 use clipping when drawing bitmaps, can center 'em. This fixes
overwriting borders when cells shrink when SIP is visible.
2005-06-13 13:32:06 +00:00
ehouse
c787f05711 turn on scrolling by default 2005-06-13 13:24:15 +00:00
ehouse
c85a50c070 add relay dir to -I list 2005-06-13 13:23:33 +00:00
ehouse
a2729d0e8b fix incorrect signature that was causing all scores to be drawn as 0. 2005-06-09 14:18:55 +00:00
ehouse
856f39d6e9 make it easier to tweak compiler optimizations (since some produce
crashing code)
2005-02-15 14:34:50 +00:00
ehouse
8ea5a551d5 revert to an earlier version that didn't build crashing code. 2005-02-11 02:50:04 +00:00
ehouse
0899f69ac7 update so works again. 2005-02-11 02:48:13 +00:00
ehouse
6a4bd1bb4a update so works again. Some optimizations produce bad code in EVC4.
Turn them off, and choose others.  This will be the preferred way of
building from now on since the files produced by the IDE rearrange
their parts at random whenever changed, making diff useless for
figuring out what broke.
2005-02-11 02:45:59 +00:00
ehouse
b1cd16ce35 add #define turning on scrollbar support for square screened devices. 2005-02-06 06:59:24 +00:00
ehouse
64876a008f as a workaround for reported lockups on WM SE devices, save state
after many user actions.  This was meant to capture the state right
before the crash but seems instead to have fixed it.
2005-02-06 06:56:06 +00:00
ehouse
7e6fcc97aa beta 3; 2005 copyright 2005-02-06 06:54:01 +00:00
ehouse
f952b366b0 call ceCenterCtl() 2005-02-06 06:52:57 +00:00
ehouse
b92bb148a9 add ceCenterCtl() 2005-02-06 06:52:24 +00:00
ehouse
af15796fa8 shrink a couple of dialogs to fit square screen 2005-02-05 21:49:03 +00:00
ehouse
132f7e808b scrolling support; determine board layout based on screen size. 2005-02-05 21:43:16 +00:00
ehouse
cd1e2683b8 add fields supporting scrolling 2005-02-05 21:38:04 +00:00
ehouse
c87132b416 remove dead param 2005-01-23 08:15:29 +00:00
ehouse
076e9917fb fix to compile with changed api 2005-01-21 08:26:32 +00:00
ehouse
d8b00d98d3 remove unused vars 2005-01-04 15:11:00 +00:00
ehouse
90a609fafa turn on optimizations for ARM Release build; kill precompiled headers for all 2004-12-18 01:21:11 +00:00
ehouse
1cbeaf95b7 version to b2 2004-12-18 01:04:19 +00:00
ehouse
fe5aec3785 use _vsnprintf to fix buffer overflow 2004-12-18 01:03:26 +00:00
ehouse
1154250de3 add bname 2004-12-18 01:02:54 +00:00
ehouse
8f5c777b9b dict_getShortName 2004-12-18 01:02:22 +00:00
ehouse
bc7fba9689 remove bname 2004-12-18 01:01:47 +00:00
ehouse
0caa413f1f turn on MY_COLOR_SEL for .rc file too 2004-12-17 15:15:12 +00:00
ehouse
a07d8160f8 cover timer with scoreboard when no timer so region gets erased 2004-12-17 15:11:45 +00:00
ehouse
966376c3e8 beta 1 2004-12-17 15:09:09 +00:00
ehouse
e0f839b235 move scoreboard back to top 2004-12-17 15:08:00 +00:00
ehouse
8ff6534e48 add aygshell.lib 2004-12-17 07:48:34 +00:00
ehouse
c0e2370cd2 init new-style menus 2004-12-17 07:45:30 +00:00
ehouse
3a34bd4ea1 specify new-style menus 2004-12-17 07:42:25 +00:00
ehouse
19d2ca95ad expand board to fill space created by new-style menus 2004-12-17 07:27:46 +00:00
ehouse
a6091a8aa2 add aygshell struct for new-style menus 2004-12-17 07:24:52 +00:00
ehouse
9204375d20 constants for new-style menus 2004-12-17 07:23:23 +00:00
ehouse
affdf80425 .cvsignore 2004-12-12 17:47:24 +00:00
ehouse
02d68e349f turn on features for code and resources 2004-12-12 17:45:44 +00:00
ehouse
dd4d7a4cc6 version -> 4.1 2004-12-12 17:41:01 +00:00
ehouse
b47e6e53cc fix hint borders for arrowcursor 2004-12-12 17:39:59 +00:00
ehouse
fe8e7d2dce formatting change only 2004-12-12 17:33:52 +00:00
ehouse
6d045aedf2 fix glitch in tile picker (same as palm) 2004-12-12 17:32:17 +00:00
ehouse
0950fd41da generated by evc4 in converting from evc3 2004-12-11 04:29:57 +00:00
ehouse
218a0a9a1c fix to compile without SEARCHLIMIT set 2004-12-11 04:25:45 +00:00
ehouse
d515e63d8a add remaining tiles dialog 2004-11-09 02:51:22 +00:00
ehouse
3958252e57 add tiles left menuitem 2004-11-09 02:46:38 +00:00
ehouse
4a9e05b277 catch up with api changes; add remaining tiles dialog 2004-11-09 02:40:36 +00:00
ehouse
dfdff5fb61 call new dict_super_init 2004-10-16 04:41:23 +00:00
ehouse
9540be3c1d change binary name to Crosswords.exe 2004-07-11 16:32:22 +00:00
ehouse
de74dd9480 change app title to Crosswords 2004-07-11 16:31:11 +00:00
ehouse
53f9b49b5a protect with ifdef 2004-07-10 17:51:42 +00:00
ehouse
ef1dda23ba support and turn on hintlimits features 2004-07-10 17:49:31 +00:00
ehouse
06f6837556 add tray limits for hint dlg 2004-07-10 17:47:30 +00:00
ehouse
a8ad591ebe support hint limits feature 2004-07-10 17:46:36 +00:00
ehouse
74aa6ec990 add askTrayLimits var 2004-07-10 17:43:15 +00:00
ehouse
69f7598b19 remove unused var 2004-07-10 17:42:16 +00:00
ehouse
75cb31845f first checked in; works 2004-07-10 17:40:16 +00:00
ehouse
335d43e2b3 incorporate API changes; cleanup timer code 2004-06-25 07:19:05 +00:00
ehouse
35d65ca632 remove non-working code 2004-06-23 04:37:44 +00:00
ehouse
f780f9e1fb add checkbox for hint rect; version change 2004-06-18 13:29:19 +00:00
ehouse
aa5fad8385 add checkbox for hint rect 2004-06-18 13:28:31 +00:00
ehouse
6043715a7e draw hint rect borders 2004-06-16 04:17:08 +00:00
ehouse
8e90447f65 kill timers after firing once 2004-06-16 04:16:22 +00:00
ehouse
151a0c9b82 remove pre-ship designation from version string 2004-06-04 12:47:39 +00:00
ehouse
b25e79dac0 version string to rc1 2004-05-29 14:15:27 +00:00
ehouse
9b39fa592d removed commented out code 2004-05-28 02:47:27 +00:00
ehouse
fc7c9cb3b4 bug: disable some items when not starting a game 2004-05-28 02:46:42 +00:00
ehouse
1cd8c7ed96 turn coloring tiles on by default 2004-05-28 02:45:49 +00:00
ehouse
d180a5c0db always build with color editing 2004-05-26 04:51:48 +00:00
ehouse
fa0bfb7d13 check flags before recognizing dict so shipping versions will not try to open newer format dicts 2004-05-26 04:50:30 +00:00
ehouse
15299090e9 no drawing until board inited; redraw after colors changed in new game creation 2004-05-26 04:48:25 +00:00
ehouse
0a6a9de4cf clean up dialog init 2004-05-26 04:46:57 +00:00
ehouse
fa5bdc2457 always build with color editing 2004-05-26 04:43:53 +00:00
ehouse
49cfd504a5 always build with color editing; version change 2004-05-26 04:43:18 +00:00
ehouse
621dd87d71 clean up dialog init 2004-05-26 04:39:29 +00:00
ehouse
047b85624b position Spanish bitmaps better 2004-05-22 15:23:38 +00:00
ehouse
eab5f0e598 add URL for getting EVC++ environment. 2004-05-15 01:21:11 +00:00
ehouse
9aa3eb39b1 add del button to tilepicker 2004-05-15 01:08:51 +00:00
ehouse
f62b515e4f new constant 2004-05-15 01:08:16 +00:00
ehouse
411bc40a72 add string for undo assign error 2004-05-15 01:07:34 +00:00