]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/gui.cxx
Fix line endings
[flightgear.git] / src / GUI / gui.cxx
index 48deee30cd54fa5ac836d0b3b20391e99f7830fb..fbc5e902aa80f385ce71d32edd650ddb44a0356a 100644 (file)
 #include "gui.h"
 #include "gui_local.hxx"
 #include "preset_dlg.hxx"
-
-
-extern void initDialog (void);
-extern void mkDialogInit (void);
-extern void ConfirmExitDialogInit(void);
+#include "layout.hxx"
 
 
 puFont guiFnt = 0;
@@ -71,10 +67,8 @@ void guiInit()
 
     // Initialize PUI
     puInit();
-    puSetDefaultStyle         ( PUSTYLE_SMALL_BEVELLED ); //PUSTYLE_DEFAULT
-    puSetDefaultColourScheme  (0.8, 0.8, 0.9, 0.8);
-
-    initDialog();
+    puSetDefaultStyle         ( PUSTYLE_SMALL_SHADED ); //PUSTYLE_DEFAULT
+    puSetDefaultColourScheme  (0.8, 0.8, 0.9, 1);
 
     // Next check home directory
     SGPath fntpath;
@@ -94,6 +88,8 @@ void guiInit()
     puFont GuiFont ( guiFntHandle, 15 ) ;
     puSetDefaultFonts( GuiFont, GuiFont ) ;
     guiFnt = puGetDefaultLabelFont();
+
+    LayoutWidget::setDefaultFont(&GuiFont, 15);
   
     if (!fgHasNode("/sim/startup/mouse-pointer")) {
         // no preference specified for mouse pointer, attempt to autodetect...
@@ -122,8 +118,5 @@ void guiInit()
        initMouseQuat();
 
     // Set up our Dialog Boxes
-    ConfirmExitDialogInit();
     fgPresetInit();
-       
-    mkDialogInit();
 }