summaryrefslogtreecommitdiffstats
path: root/win/tkWinDraw.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-06 22:59:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-06 22:59:06 (GMT)
commit5044ec3cd868224c5c8b39afcadeac68fe8c2ed4 (patch)
tree8730df670d63d4b7741fa084f66c521c8fe59ada /win/tkWinDraw.c
parentabcb34111ac1a8d9dc56809446c11d4126c87beb (diff)
parent34455b2ccec84bccf8f6380ee8ac40637bf4b8f8 (diff)
downloadtk-5044ec3cd868224c5c8b39afcadeac68fe8c2ed4.zip
tk-5044ec3cd868224c5c8b39afcadeac68fe8c2ed4.tar.gz
tk-5044ec3cd868224c5c8b39afcadeac68fe8c2ed4.tar.bz2
some more cygwin compatibility improvements
format tk.decls
Diffstat (limited to 'win/tkWinDraw.c')
-rw-r--r--win/tkWinDraw.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c
index f770f15..dd482bd 100644
--- a/win/tkWinDraw.c
+++ b/win/tkWinDraw.c
@@ -23,7 +23,7 @@
* Translation table between X gc functions and Win32 raster op modes.
*/
-int tkpWinRopModes[] = {
+const int tkpWinRopModes[] = {
R2_BLACK, /* GXclear */
R2_MASKPEN, /* GXand */
R2_MASKPENNOT, /* GXandReverse */
@@ -54,7 +54,7 @@ int tkpWinRopModes[] = {
#define SRCORREVERSE (DWORD)0x00DD0228 /* dest = source OR (NOT dest) */
#define SRCNAND (DWORD)0x007700E6 /* dest = NOT (source AND dest) */
-int tkpWinBltModes[] = {
+const int tkpWinBltModes[] = {
BLACKNESS, /* GXclear */
SRCAND, /* GXand */
SRCERASE, /* GXandReverse */
@@ -92,9 +92,10 @@ int tkpWinBltModes[] = {
/*
* Macros used later in the file.
*/
-
-#define MIN(a,b) ((a>b) ? b : a)
-#define MAX(a,b) ((a<b) ? b : a)
+#ifndef MIN
+# define MIN(a,b) ((a>b) ? b : a)
+# define MAX(a,b) ((a<b) ? b : a)
+#endif
/*
* The followng typedef is used to pass Windows GDI drawing functions.