Now that bounds are using vectors we can just pass them directly.
This commit is contained in:
parent
e05b2c304c
commit
ec6baf40a6
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue