From 6b5c2775d35623f70fe1218710b6613d38395659 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Tue, 4 Oct 2005 17:27:27 +0000 Subject: Set the white font in the ministatus window only in sdl mode until we have found a solution in openGL Mode. Disable the openGL Box when compiled without opengl support. --- src/gui/ministatus.cpp | 7 +++++-- src/gui/setup.cpp | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp index adfda434..eb2ebf53 100644 --- a/src/gui/ministatus.cpp +++ b/src/gui/ministatus.cpp @@ -27,6 +27,7 @@ #include #include "gui.h" +#include #include "progressbar.h" #include "../playerinfo.h" @@ -49,8 +50,10 @@ MiniStatusWindow::MiniStatusWindow(): hpLabel = new gcn::Label(""); mpLabel = new gcn::Label(""); - hpLabel->setFont((gcn::Font*)speechFont); - mpLabel->setFont((gcn::Font*)speechFont); +#ifndef USE_OPENGL + hpLabel->setFont(speechFont); + mpLabel->setFont(speechFont); +#endif add(hpBar); add(mpBar); diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp index 582670a5..1938231a 100644 --- a/src/gui/setup.cpp +++ b/src/gui/setup.cpp @@ -103,6 +103,9 @@ Setup::Setup(): scrollArea = new ScrollArea(modeList); fsCheckBox = new CheckBox("Full screen", false); openGLCheckBox = new CheckBox("OpenGL", false); +#ifndef USE_OPENGL + openGLCheckBox->setEnabled(false); +#endif customCursorCheckBox = new CheckBox("Custom cursor"); alphaLabel = new gcn::Label("Gui opacity"); alphaSlider = new Slider(0.2, 1.0); -- cgit v1.2.3-70-g09d2