From 516f20124f2cf11b45a17bd34e5f569fd504f3fe Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Tue, 10 Mar 2026 23:01:15 -0400 Subject: [PATCH] Fix a few little bugs. --- include/guecs/sfml/backend.hpp | 1 + include/guecs/ui.hpp | 1 - src/guecs/sfml/components.cpp | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/guecs/sfml/backend.hpp b/include/guecs/sfml/backend.hpp index fc36f35..e4c2e9f 100644 --- a/include/guecs/sfml/backend.hpp +++ b/include/guecs/sfml/backend.hpp @@ -1,3 +1,4 @@ +#pragma once #include "guecs/ui.hpp" namespace sfml { diff --git a/include/guecs/ui.hpp b/include/guecs/ui.hpp index b25d940..c6c1fa0 100644 --- a/include/guecs/ui.hpp +++ b/include/guecs/ui.hpp @@ -229,7 +229,6 @@ namespace guecs { void show_sprite(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_label(const string& region, const wstring& content); }; diff --git a/src/guecs/sfml/components.cpp b/src/guecs/sfml/components.cpp index 45184dd..6e04f14 100644 --- a/src/guecs/sfml/components.cpp +++ b/src/guecs/sfml/components.cpp @@ -137,7 +137,6 @@ namespace guecs { 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?"); - std::cout << "x=" << x << " y=" << y << " w=" << w << " h=" << h << std::endl; sf::Vector2f size{float(w), float(h)}; if(shape == nullptr) { shape = make_shared(size);