aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2007-02-26 20:35:47 +0000
committerSimon Tatham <anakin@pobox.com>2007-02-26 20:35:47 +0000
commit15f70f527a0a753285e3fa871bd4018e547fbb05 (patch)
treed34aebfc6c8e4ad48f0c1aeabbbaff7432e5cc24 /net.c
parent3bfe0fb32eae41dcc213e1cef860ec421cc2540c (diff)
downloadpuzzles-15f70f527a0a753285e3fa871bd4018e547fbb05.zip
puzzles-15f70f527a0a753285e3fa871bd4018e547fbb05.tar.gz
puzzles-15f70f527a0a753285e3fa871bd4018e547fbb05.tar.bz2
puzzles-15f70f527a0a753285e3fa871bd4018e547fbb05.tar.xz
Dariusz Olszewski's changes to support compiling for PocketPC. This
is mostly done with ifdefs in windows.c; so mkfiles.pl generates a new makefile (Makefile.wce) and Recipe enables it, but it's hardly any different from Makefile.vc apart from a few definitions at the top of the files. Currently the PocketPC build is not enabled in the build script, but with any luck I'll be able to do so reasonably soon. [originally from svn r7337]
Diffstat (limited to 'net.c')
-rw-r--r--net.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net.c b/net.c
index eb83a16..bf0f7e7 100644
--- a/net.c
+++ b/net.c
@@ -46,7 +46,11 @@
#define PREFERRED_TILE_SIZE 32
#define TILE_SIZE (ds->tilesize)
#define TILE_BORDER 1
+#ifdef SMALL_SCREEN
+#define WINDOW_OFFSET 4
+#else
#define WINDOW_OFFSET 16
+#endif
#define ROTATE_TIME 0.13F
#define FLASH_FRAME 0.07F
@@ -150,12 +154,16 @@ static const struct game_params net_presets[] = {
{7, 7, FALSE, TRUE, 0.0},
{9, 9, FALSE, TRUE, 0.0},
{11, 11, FALSE, TRUE, 0.0},
+#ifndef SMALL_SCREEN
{13, 11, FALSE, TRUE, 0.0},
+#endif
{5, 5, TRUE, TRUE, 0.0},
{7, 7, TRUE, TRUE, 0.0},
{9, 9, TRUE, TRUE, 0.0},
{11, 11, TRUE, TRUE, 0.0},
+#ifndef SMALL_SCREEN
{13, 11, TRUE, TRUE, 0.0},
+#endif
};
static int game_fetch_preset(int i, char **name, game_params **params)