diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-06 22:59:06 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-06 22:59:06 (GMT) |
commit | e3509ec1d375b75b6bb1243beffffd788cf432e0 (patch) | |
tree | 8730df670d63d4b7741fa084f66c521c8fe59ada /win/tkWinDraw.c | |
parent | 54cdd49ec52c0add51c03a85bdab6bdcef7f6b9f (diff) | |
parent | 1efb8907c729e92807cbcad5989bb74d3022d4ec (diff) | |
download | tk-e3509ec1d375b75b6bb1243beffffd788cf432e0.zip tk-e3509ec1d375b75b6bb1243beffffd788cf432e0.tar.gz tk-e3509ec1d375b75b6bb1243beffffd788cf432e0.tar.bz2 |
some more cygwin compatibility improvements
format tk.decls
Diffstat (limited to 'win/tkWinDraw.c')
-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 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. |