diff --git a/render.cpp b/render.cpp index c77e55b..977997e 100644 --- a/render.cpp +++ b/render.cpp @@ -151,7 +151,7 @@ inline sf::FloatRect draw_chunk(sf::RenderWindow& window, sf::FloatRect bounds({x, y}, {text_bounds.size.x * out.size(), text_bounds.size.y}); if(default_bg != bgcolor) { - sf::RectangleShape backing({bounds.size.x, bounds.size.y}); + sf::RectangleShape backing(bounds.size); backing.setFillColor(bgcolor); backing.setPosition({bounds.position.x, bounds.position.y + bg_box_offset}); window.draw(backing); diff --git a/status.txt b/status.txt index 5ef5fa9..c8a9b25 100644 --- a/status.txt +++ b/status.txt @@ -1,5 +1,6 @@ TODO: +* Bring back shaders and pause screens. * Items are doubled in inventory. * What's the result of out of memory error with shared/unique ptr? * Config is all over the place. Can I get rid of constant.hpp? Or most of it? Also renderer.cpp:RenderConfig is weird too. Too much indirection all around.