From 645e6b6eb1950ea470828e5726439b5b34c2ef09 Mon Sep 17 00:00:00 2001 From: Christian Hammond Date: Sun, 8 Jan 2006 02:44:23 +0000 Subject: [PATCH] Use the low quality versions of some things on the Nokia 770. Enable USE_HWSURFACE, and disable the Text tool, as it's essentially useless on this. --- src/tuxpaint.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 1adcf0b74..63034d424 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -85,6 +85,13 @@ /* Compile-time options: */ +#ifdef NOKIA_770 +# define LOW_QUALITY_THUMBNAILS +# define LOW_QUALITY_STAMP_OUTLINE +# define LOW_QUALITY_FLOOD_FILL +# define NO_PROMPT_SHADOWS +# define USE_HWSURFACE +#else /* #define DEBUG */ /* #define DEBUG_MALLOC */ /* #define LOW_QUALITY_THUMBNAILS */ @@ -93,6 +100,7 @@ /* #define LOW_QUALITY_FLOOD_FILL */ /* #define NO_PROMPT_SHADOWS */ /* #define USE_HWSURFACE */ +#endif /* Disable fancy cursors in fullscreen mode, to avoid SDL bug: */ /* (This bug is still around, as of SDL 1.2.9, October 2005) */ @@ -7731,8 +7739,13 @@ static void setup(int argc, char * argv[]) wheely = 1; no_button_distinction = 0; grab_input = 0; - no_fancy_cursors = 0; +#ifdef NOKIA_770 + simple_shapes = 1; + no_fancy_cursors = 1; +#else simple_shapes = 0; + no_fancy_cursors = 0; +#endif only_uppercase = 0; promptless_save = SAVE_OVER_PROMPT; alt_print_command_default = ALTPRINT_MOD; @@ -10992,6 +11005,11 @@ static void reset_avail_tools(void) if (disallow_print) tool_avail[TOOL_PRINT] = 0; + +#ifdef NOKIA_770 + /* There is no way for the user to enter text, so just disable this. */ + tool_avail[TOOL_TEXT] = 0; +#endif }