From 1a78d73208e4c02cf5cde013a8a31c4e7ba577a2 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 31 Jan 2009 18:02:02 +0000 Subject: [PATCH] Turn off SMS by default (pending confirming a way to use the apis in unsigned app); add commented-out NO_DRAW option. --- wince/Makefile | 8 +++++--- wince/cedraw.c | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/wince/Makefile b/wince/Makefile index 7f8535cfc..5127daa34 100644 --- a/wince/Makefile +++ b/wince/Makefile @@ -49,7 +49,7 @@ HAVE_COMMCTRL = 1 # CHOOSE_FONTS = -DALLOW_CHOOSE_FONTS ifeq ($(TARGET_OS),wince) -SMS = -DXWFEATURE_SMS +#SMS = -DXWFEATURE_SMS RELAY = -DXWFEATURE_RELAY -DCOMMS_HEARTBEAT # IPDIRECT = -DXWFEATURE_IP_DIRECT # BLUETOOTH = -DXWFEATURE_BLUETOOTH @@ -81,8 +81,9 @@ else # ifeq ($(TARGET_OS),wince) ifeq ($(TARGET_OS),win32) #STANDALONE = -DXWFEATURE_STANDALONE_ONLY STANDALONE = -DPREV_WAS_STANDALONE_ONLY +# NO_DRAW = -DNO_DRAW #BLUETOOTH = -DXWFEATURE_BLUETOOTH -SMS = -DXWFEATURE_SMS +#SMS = -DXWFEATURE_SMS RELAY = -DXWFEATURE_RELAY # IPDIRECT = -DXWFEATURE_IP_DIRECT CC = i586-mingw32msvc-gcc @@ -101,7 +102,8 @@ CFLAGS += -DARM -I./ -I../common -I../relay CFLAGS += -Wall -Wunused-parameter -CFLAGS += $(BLUETOOTH) $(RELAY) $(SMS) $(IPDIRECT) $(STANDALONE) $(COLOR_SEL) $(CHOOSE_FONTS) +CFLAGS += $(BLUETOOTH) $(RELAY) $(SMS) $(IPDIRECT) $(STANDALONE) $(COLOR_SEL) \ + $(CHOOSE_FONTS) $(NO_DRAW) SVNDEF = -DSVN_REV='\"$(SVNREV)\"' CFLAGS += $(SVNDEF) diff --git a/wince/cedraw.c b/wince/cedraw.c index 02dad5dfd..3232d2116 100755 --- a/wince/cedraw.c +++ b/wince/cedraw.c @@ -961,6 +961,7 @@ DRAW_FUNC_NAME(drawCell)( DrawCtx* p_dctx, const XP_Rect* xprect, XWBonusType bonus, HintAtts hintAtts, CellFlags flags ) { +#ifndef NO_DRAW CEDrawCtx* dctx = (CEDrawCtx*)p_dctx; CEAppGlobals* globals = dctx->globals; HDC hdc = globals->hdc; @@ -1052,7 +1053,7 @@ DRAW_FUNC_NAME(drawCell)( DrawCtx* p_dctx, const XP_Rect* xprect, ceDrawHintBorders( dctx, xprect, hintAtts ); SelectObject( hdc, oldFont ); - +#endif return XP_TRUE; } /* ce_draw_drawCell */