Fix a few little bugs.

This commit is contained in:
Zed A. Shaw 2026-03-10 23:01:15 -04:00
parent 3e9047177c
commit 516f20124f
3 changed files with 1 additions and 2 deletions

View file

@ -1,3 +1,4 @@
#pragma once
#include "guecs/ui.hpp" #include "guecs/ui.hpp"
namespace sfml { namespace sfml {

View file

@ -229,7 +229,6 @@ namespace guecs {
void show_sprite(const string& region, const string& sprite_name); void show_sprite(const string& region, const string& sprite_name);
void show_icon(const string& region, const string& sprite_name); void show_icon(const string& region, const string& sprite_name);
void show_text(const string& region, const wstring& content); void show_text(const string& region, const wstring& content);
void show_label(const string& region, const wstring& content);
}; };

View file

@ -137,7 +137,6 @@ namespace guecs {
assert(w > 0.0f && "Background.w must be > 0.0f. Forgot $gui.$parser?"); assert(w > 0.0f && "Background.w must be > 0.0f. Forgot $gui.$parser?");
assert(h > 0.0f && "Background.h must be > 0.0f. Forgot $gui.$parser?"); assert(h > 0.0f && "Background.h must be > 0.0f. Forgot $gui.$parser?");
std::cout << "x=" << x << " y=" << y << " w=" << w << " h=" << h << std::endl;
sf::Vector2f size{float(w), float(h)}; sf::Vector2f size{float(w), float(h)};
if(shape == nullptr) { if(shape == nullptr) {
shape = make_shared<sf::RectangleShape>(size); shape = make_shared<sf::RectangleShape>(size);