summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkDefaultTheme.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/ttk/ttkDefaultTheme.c b/generic/ttk/ttkDefaultTheme.c
index 86f169a..dd7ad67 100644
--- a/generic/ttk/ttkDefaultTheme.c
+++ b/generic/ttk/ttkDefaultTheme.c
@@ -1,4 +1,4 @@
-/* $Id: ttkDefaultTheme.c,v 1.1 2006/10/31 01:42:26 hobbs Exp $
+/* $Id: ttkDefaultTheme.c,v 1.2 2006/10/31 13:56:58 das Exp $
*
* Copyright (c) 2003, Joe English
*
@@ -19,7 +19,9 @@ static const int WIN32_XDRAWLINE_HACK = 1;
static const int WIN32_XDRAWLINE_HACK = 0;
#endif
+#ifndef MIN
#define MIN(a,b) (a < b ? a : b)
+#endif
#define BORDERWIDTH 2
#define SCROLLBAR_WIDTH 14
@@ -738,7 +740,7 @@ static void MenubuttonArrowElementDraw(
int size = MENUBUTTON_ARROW_SIZE;
int postDirection = POST_BELOW;
ArrowDirection arrowDirection = ARROW_DOWN;
- int width, height;
+ int width = 0, height = 0;
Tk_GetPixelsFromObj(NULL, tkwin, arrow->sizeObj, &size);
Tcl_GetIndexFromObj(NULL, arrow->directionObj, directionStrings,