Arreglats els endings

This commit is contained in:
2025-03-05 21:57:10 +01:00
parent 241732752a
commit 5cc163dd14
3 changed files with 9 additions and 7 deletions

View File

@@ -136,7 +136,7 @@ void Text::write(int x, int y, const std::string &text, int kerning, int lenght)
auto index = static_cast<int>(text[i]);
sprite_->setClip(offset_[index].x, offset_[index].y, box_width_, box_height_);
sprite_->setX(x + shift);
sprite_->render();
sprite_->render(1, 15);
shift += offset_[static_cast<int>(text[i])].w + kerning;
}
}
@@ -242,7 +242,8 @@ void Text::writeDX(Uint8 flags, int x, int y, const std::string &text, int kerni
}
else
{
write(x, y, text, kerning, lenght);
writeColored(x, y, text, textColor, kerning, lenght);
//write(x, y, text, kerning, lenght);
}
}