Now that bounds are using vectors we can just pass them directly.

main
Zed A. Shaw 7 days ago
parent e05b2c304c
commit ec6baf40a6
  1. 2
      render.cpp
  2. 1
      status.txt

@ -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…
Cancel
Save