1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-08-30 18:25:36 +00:00

warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat

many many more to do but it's a little step closer to get rid of warnings
This commit is contained in:
fgenesis 2024-04-16 00:12:56 +02:00
commit dd7ab0448f
45 changed files with 227 additions and 369 deletions

View file

@ -140,7 +140,7 @@ void BitmapText::formatText()
text = this->text;
lines.clear();
std::string currentLine;
int lastSpace = -1;
size_t lastSpace = size_t(-1);
float currentWidth = 0;
alignWidth = 0;
maxW = 0;
@ -157,7 +157,7 @@ void BitmapText::formatText()
lastSpace = i;
}
lines.push_back(text.substr(0, lastSpace));
int tsz = text.size();
size_t tsz = text.size();
text = text.substr(lastSpace+1, tsz);
i = 0;
alignWidth = currentWidth;