# HG changeset patch # User ib # Date 1358877066 0 # Node ID e6ee0c8ef34189994747a6c46516214445dfcc36 # Parent 330325df88ed3352eb856ef17f6b1e0db60e6355 Relocate #defines and make them enums. They are only used inside ws.c. diff -r 330325df88ed -r e6ee0c8ef341 gui/wm/ws.c --- a/gui/wm/ws.c Tue Jan 22 17:34:52 2013 +0000 +++ b/gui/wm/ws.c Tue Jan 22 17:51:06 2013 +0000 @@ -51,6 +51,18 @@ #include #endif +/// Color byte orders and depths +enum { + wsRGB32 = 1, + wsBGR32, + wsRGB24, + wsBGR24, + wsRGB16, + wsBGR16, + wsRGB15, + wsBGR15 +}; + #define MOUSEHIDE_DELAY 1000 // in milliseconds static wsWindow *mouse_win; diff -r 330325df88ed -r e6ee0c8ef341 gui/wm/ws.h --- a/gui/wm/ws.h Tue Jan 22 17:34:52 2013 +0000 +++ b/gui/wm/ws.h Tue Jan 22 17:51:06 2013 +0000 @@ -65,15 +65,6 @@ #define wsWaitMap 64 #define wsAspect 128 -#define wsRGB32 1 -#define wsBGR32 2 -#define wsRGB24 3 -#define wsBGR24 4 -#define wsRGB16 5 -#define wsBGR16 6 -#define wsRGB15 7 -#define wsBGR15 8 - #define wsNone 0 #define wsWindowVisible 1 #define wsWindowPartialVisible 2