2 次代码提交 4ab5a23aca ... d3e460e5df

作者 SHA1 备注 提交日期
  Jochem Raat d3e460e5df Merge branch 'master' of https://notabug.org/raatmarien/PWS-Procedural-Island-Generator 9 年之前
  Jochem Raat 589b11de86 Draw the GUI over the maps 9 年之前
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/guiFrontend.cpp

+ 3 - 3
src/guiFrontend.cpp

@@ -277,7 +277,7 @@ void GUIFrontend::handleEvents()
 
 void GUIFrontend::draw()
 {
-    drawGUI();
+    window->clear(Color(200, 200, 200));
 
     if (mapGenerated) {
         if (currentView == HEIGHTMAP)
@@ -297,12 +297,12 @@ void GUIFrontend::draw()
 
         window->draw(displaySprite);
     }
+
+    drawGUI();
 }
 
 void GUIFrontend::drawGUI()
 {
-    window->clear(Color(200, 200, 200));
-
     // Labels
     seedBox->draw(window);
     nameBox->draw(window);