Permalink
Browse files

fix hang in the redscreen in Gui::Screen::ShowBadError

  • Loading branch information...
1 parent 226f6f2 commit 51e341146dd726fb7a80f023c807c75c44831db1 @johnbartholomew johnbartholomew committed May 26, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/gui/GuiScreen.cpp
View
@@ -81,9 +81,8 @@ void Screen::ClearFocus()
void Screen::ShowBadError(const char *msg)
{
- fprintf(stderr, "%s", msg);
baseContainer->HideChildren();
-
+
Gui::Fixed *f = new Gui::Fixed(6*GetWidth()/8.0f, 6*GetHeight()/8.0f);
Gui::Screen::AddBaseWidget(f, GetWidth()/8, GetHeight()/8);
f->SetTransparency(false);
@@ -103,7 +102,6 @@ void Screen::ShowBadError(const char *msg)
Gui::Screen::RemoveBaseWidget(f);
delete f;
- baseContainer->ShowAll();
}
bool Screen::Project(const vector3d &in, vector3d &out)

0 comments on commit 51e3411

Please sign in to comment.