fix compiler warnings (GCC + Clang)

This commit is contained in:
MihailRis
2025-03-20 22:04:29 +03:00
parent 6c3d2d0907
commit 3d22de761f
50 changed files with 80 additions and 103 deletions
+1 -1
View File
@@ -7,9 +7,9 @@ namespace gui {
class InputBindBox : public Panel {
protected:
Binding& binding;
glm::vec4 focusedColor {0.1f, 0.15f, 0.35f, 0.75f};
std::shared_ptr<Label> label;
Binding& binding;
public:
InputBindBox(Binding& binding, glm::vec4 padding=glm::vec4(6.0f));
+1 -1
View File
@@ -12,7 +12,7 @@
class Font;
class Assets;
class ItemDef;
struct ItemDef;
class Batch2D;
class DrawContext;
class Content;
-1
View File
@@ -61,7 +61,6 @@ void LabelCache::update(std::wstring_view text, bool multiline, bool wrap) {
}
}
if (font != nullptr) {
int lineHeight = font->getLineHeight();
int maxWidth = 0;
for (int i = 0; i < lines.size() - 1; i++) {
const auto& next = lines[i + 1];
-1
View File
@@ -603,7 +603,6 @@ void TextBox::onFocus(GUI* gui) {
}
void TextBox::reposition() {
auto size = getSize();
UINode::reposition();
refreshLabel();
}