diff --git a/libstarlight/source/starlight/ui/UICanvas.cpp b/libstarlight/source/starlight/ui/UICanvas.cpp index 6de3eb0..77ad048 100644 --- a/libstarlight/source/starlight/ui/UICanvas.cpp +++ b/libstarlight/source/starlight/ui/UICanvas.cpp @@ -35,6 +35,7 @@ void UICanvas::PreDraw() { drawContext->Clear(); GFXManager::PushContext(drawContext.get()); GFXManager::PushOffsetAdd(-scrollOffset); + GFXManager::PrepareForDrawing(); // force clear to take so you don't get garbage if nothing renders VRect vr = ViewportRect(); @@ -51,4 +52,3 @@ void UICanvas::PreDraw() { void UICanvas::Draw() { static_cast(drawContext.get())->Draw(rect + GFXManager::GetOffset()); } - diff --git a/libstarlight/todo.txt b/libstarlight/todo.txt index 4a914d2..0213efb 100644 --- a/libstarlight/todo.txt +++ b/libstarlight/todo.txt @@ -3,6 +3,7 @@ roadmap to v0.5.1 { - make font-not-found not outright crash the app (hopefully) + - fix UICanvas garbage-on-empty make asset gc actually sweep every 5sec maybe entirely replace clearing with transparent knockout on bind? implement more blend modes??