summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/control/RPGEdit.cpp2
-rw-r--r--src/view/MapView.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/control/RPGEdit.cpp b/src/control/RPGEdit.cpp
index 257a801..f42a774 100644
--- a/src/control/RPGEdit.cpp
+++ b/src/control/RPGEdit.cpp
@@ -71,6 +71,8 @@ void RPGEdit::systemLoop() {
lastFrameTicks = SDL_GetTicks();
+ SDL_RenderClear(window->getRenderer());
+
{
std::unique_lock<std::mutex> lock(modelMutex);
diff --git a/src/view/MapView.cpp b/src/view/MapView.cpp
index 78bc24c..d8a69d5 100644
--- a/src/view/MapView.cpp
+++ b/src/view/MapView.cpp
@@ -95,8 +95,6 @@ void MapView::clearEntities() {
}
void MapView::render(const Model::Map *map, Model::Position<float> center, uint64_t time) {
- SDL_RenderClear(window->getRenderer());
-
std::pair<int, int> viewport = window->getViewport();
float pixels = std::max(viewport.first/20.0f, viewport.second/15.0f);