Font sizes and map view now work with arbitrary map sizes.

This commit is contained in:
Zed A. Shaw 2024-11-09 10:56:22 -05:00
parent 2dccc6b17b
commit 824a384ffd
4 changed files with 30 additions and 20 deletions

View file

@ -55,7 +55,7 @@ struct SFMLRender {
sf::Color color(int val);
sf::Color color(Value val);
sf::Sprite &get_text_sprite(wchar_t tile);
bool resize_map(int new_size);
bool resize_map(int new_size, Point &view_port);
void render_text(std::string &text, float x, float y);
void draw_main_ui();
void draw_screen(bool clear=true, float map_off_x=0.0f, float map_off_y=0.0f);