* that that wasn't the original intent...if not, perhaps we need another\r
* symbolic constant, FREEGLUT_MENU_ITEM_BORDER, or such.)\r
*/\r
-#if TARGET_HOST_MS_WINDOWS\r
-#define FREEGLUT_MENU_FONT GLUT_BITMAP_8_BY_13\r
-#else\r
-#define FREEGLUT_MENU_FONT GLUT_BITMAP_HELVETICA_18\r
-#endif\r
+/* See platform-specific header files for menu font and color definitions */\r
\r
#define FREEGLUT_MENU_HEIGHT (glutBitmapHeight(FREEGLUT_MENU_FONT) + \\r
FREEGLUT_MENU_BORDER)\r
* too. These variables should be stuffed into global state and initialized\r
* via the glutInit*() system.\r
*/\r
-#if TARGET_HOST_MS_WINDOWS\r
-static float menu_pen_fore [4] = {0.0f, 0.0f, 0.0f, 1.0f};\r
-static float menu_pen_back [4] = {0.85f, 0.85f, 0.85f, 1.0f};\r
-static float menu_pen_hfore [4] = {1.0f, 1.0f, 1.0f, 1.0f};\r
-static float menu_pen_hback [4] = {0.15f, 0.15f, 0.45f, 1.0f};\r
-#else\r
-static float menu_pen_fore [4] = {0.0f, 0.0f, 0.0f, 1.0f};\r
-static float menu_pen_back [4] = {0.70f, 0.70f, 0.70f, 1.0f};\r
-static float menu_pen_hfore [4] = {0.0f, 0.0f, 0.0f, 1.0f};\r
-static float menu_pen_hback [4] = {1.0f, 1.0f, 1.0f, 1.0f};\r
-#endif\r
+static float menu_pen_fore [4] = FREEGLUT_MENU_PEN_FORE_COLORS ;\r
+static float menu_pen_back [4] = FREEGLUT_MENU_PEN_BACK_COLORS ;\r
+static float menu_pen_hfore [4] = FREEGLUT_MENU_PEN_HFORE_COLORS;\r
+static float menu_pen_hback [4] = FREEGLUT_MENU_PEN_HBACK_COLORS;\r
\r
\r
extern GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y );\r
#endif\r
\r
\r
+/* Menu font and color definitions */\r
+#define FREEGLUT_MENU_FONT GLUT_BITMAP_8_BY_13\r
+\r
+#define FREEGLUT_MENU_PEN_FORE_COLORS {0.0f, 0.0f, 0.0f, 1.0f}\r
+#define FREEGLUT_MENU_PEN_BACK_COLORS {0.85f, 0.85f, 0.85f, 1.0f}\r
+#define FREEGLUT_MENU_PEN_HFORE_COLORS {1.0f, 1.0f, 1.0f, 1.0f}\r
+#define FREEGLUT_MENU_PEN_HBACK_COLORS {0.15f, 0.15f, 0.45f, 1.0f}\r
+\r
\r
/* Function to be called on exit */\r
extern void (__cdecl *__glutExitFunc)( int return_value );\r
};\r
\r
\r
+/* Menu font and color definitions */\r
+#define FREEGLUT_MENU_FONT GLUT_BITMAP_HELVETICA_18\r
+\r
+#define FREEGLUT_MENU_PEN_FORE_COLORS {0.0f, 0.0f, 0.0f, 1.0f}\r
+#define FREEGLUT_MENU_PEN_BACK_COLORS {0.70f, 0.70f, 0.70f, 1.0f}\r
+#define FREEGLUT_MENU_PEN_HFORE_COLORS {0.0f, 0.0f, 0.0f, 1.0f}\r
+#define FREEGLUT_MENU_PEN_HBACK_COLORS {1.0f, 1.0f, 1.0f, 1.0f}\r
+\r
+\r
+\r
+\r
/* -- PRIVATE FUNCTION DECLARATIONS ---------------------------------------- */\r
/* spaceball device functions, defined in freeglut_spaceball.c */\r
int fgIsSpaceballXEvent( const XEvent *ev );\r