Fix a few little bugs.
This commit is contained in:
parent
3e9047177c
commit
516f20124f
3 changed files with 1 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#pragma once
|
||||
#include "guecs/ui.hpp"
|
||||
|
||||
namespace sfml {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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<sf::RectangleShape>(size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue