GRAPHICS: MACGUI: Fix warnings

This commit is contained in:
Nathanael Gentry 2020-07-30 10:32:38 -04:00
parent 0e359d0b7b
commit d9e2420e90

View File

@ -1039,8 +1039,8 @@ void MacText::setSelection(int pos, bool start) {
while (pos > 0) {
if (pos < getLineCharWidth(row)) {
for (int i = 0; i < _textLines[row].chunks.size(); i++) {
if (pos < _textLines[row].chunks[i].text.size()) {
for (uint i = 0; i < _textLines[row].chunks.size(); i++) {
if ((uint)pos < _textLines[row].chunks[i].text.size()) {
colX += _textLines[row].chunks[i].getFont()->getStringWidth(Common::U32String(_textLines[row].chunks[i].text.c_str(), pos));
col += pos;
pos = 0;
@ -1057,7 +1057,7 @@ void MacText::setSelection(int pos, bool start) {
}
row++;
if (row >= _textLines.size()) {
if ((uint)row >= _textLines.size()) {
colX = _surface->w;
col = getLineCharWidth(row);