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:
parent
ebf49310b3
commit
dd7ab0448f
45 changed files with 227 additions and 369 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue