diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-06 22:04:03 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-06 22:04:03 (GMT) |
commit | 88de4c824e53243f5015876e241c4bcc32de14a3 (patch) | |
tree | 845dc4e8e220a3589692bbc862c9d74649410158 /win/tkWinDraw.c | |
parent | 6d82b22b69ce9f60fed74bb980a36719d4b0faf5 (diff) | |
download | tk-88de4c824e53243f5015876e241c4bcc32de14a3.zip tk-88de4c824e53243f5015876e241c4bcc32de14a3.tar.gz tk-88de4c824e53243f5015876e241c4bcc32de14a3.tar.bz2 |
some more cygwin compatibility improvements
Diffstat (limited to 'win/tkWinDraw.c')
-rwxr-xr-x[-rw-r--r--] | win/tkWinDraw.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c index d0a609f..805dde3 100644..100755 --- a/win/tkWinDraw.c +++ b/win/tkWinDraw.c @@ -24,7 +24,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 */ @@ -55,7 +55,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 */ @@ -93,9 +93,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. |