Moving the platform dependencies from the "freeglut_menu.c" file to the platform...
[freeglut] / src / Common / freeglut_menu.c
index 8444d6e..4ea023a 100644 (file)
  * 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