Mercurial > dwindows
diff dw.h @ 1802:aedf5903db0a
Add DW_FCF_TEXTURED window style; relevant only for Mac port.
Remove NSTexturedBackgroundWindowMask from style in dw_window_new.
Add Copyright notice to winmain.c.
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 27 Sep 2012 05:09:10 +0000 |
parents | 9304241b7b33 |
children | 22225eb286e5 |
line wrap: on
line diff
--- a/dw.h Thu Sep 27 04:26:34 2012 +0000 +++ b/dw.h Thu Sep 27 05:09:10 2012 +0000 @@ -143,6 +143,7 @@ #define DW_FCF_AUTOICON FCF_AUTOICON #define DW_FCF_MAXIMIZE WS_MAXIMIZED #define DW_FCF_MINIMIZE WS_MINIMIZED +#define DW_FCF_TEXTURED 0 #define DW_CFA_BITMAPORICON CFA_BITMAPORICON #define DW_CFA_STRING CFA_STRING @@ -353,6 +354,7 @@ #define DW_FCF_AUTOICON 0 #define DW_FCF_MAXIMIZE 0 #define DW_FCF_MINIMIZE 0 +#define DW_FCF_TEXTURED (1 << 8) /* NSTexturedBackgroundWindowMask */ #define DW_CFA_BITMAPORICON 1 #define DW_CFA_STRING (1 << 1) @@ -529,6 +531,7 @@ #define DW_FCF_MAXIMIZE WS_MAXIMIZE #define DW_FCF_MINIMIZE WS_MINIMIZE #define DW_FCF_COMPOSITED 1 +#define DW_FCF_TEXTURED 0 #define DW_CFA_BITMAPORICON 1 #define DW_CFA_STRING (1 << 1) @@ -791,6 +794,7 @@ #define DW_FCF_AUTOICON (Ph_WM_RENDER_ASICON | ~Ph_WM_RENDER_ASAPP) #define DW_FCF_MAXIMIZE 0 #define DW_FCF_MINIMIZE 0 +#define DW_FCF_TEXTURED 0 #define DW_CFA_BITMAPORICON 1 #define DW_CFA_STRING (1 << 1) @@ -973,6 +977,7 @@ #define DW_FCF_MAXIMIZE (1 << 19) #define DW_FCF_MINIMIZE (1 << 20) #define DW_FCF_CLOSEBUTTON (1 << 21) +#define DW_FCF_TEXTURED 0 #define DW_CFA_BITMAPORICON 1 #define DW_CFA_STRING (1 << 1) @@ -1437,20 +1442,20 @@ #endif /* Visual C */ -#if defined(_MSC_VER) +#if defined(_MSC_VER) # if _MSC_VER >= 1400 # define DW_DEPRECATED(func, message) __declspec(deprecated(message)) func # endif /* Clang */ #elif defined(__has_extension) -# if __has_extension(attribute_deprecated_with_message) +# if __has_extension(attribute_deprecated_with_message) # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated (message))) # else # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated)) # endif /* GCC */ #elif defined(__GNUC__) -# if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40500 +# if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40500 # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated (message))) # else # define DW_DEPRECATED(func, message) func __attribute__ ((deprecated))