[Scummvm-git-logs] scummvm master -> 39cd0f8522a37cad10fef8db311b632a18a5e5ee
salty-horse
ori at avtalion.name
Fri Feb 12 19:32:02 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
39cd0f8522 AGS: Remove pointless Common::String conversion
Commit: 39cd0f8522a37cad10fef8db311b632a18a5e5ee
https://github.com/scummvm/scummvm/commit/39cd0f8522a37cad10fef8db311b632a18a5e5ee
Author: Ori Avtalion (ori at avtalion.name)
Date: 2021-02-12T21:31:47+02:00
Commit Message:
AGS: Remove pointless Common::String conversion
Changed paths:
engines/ags/lib/alfont/alfont.cpp
diff --git a/engines/ags/lib/alfont/alfont.cpp b/engines/ags/lib/alfont/alfont.cpp
index 36e0e8d371..bc6e4f5d4f 100644
--- a/engines/ags/lib/alfont/alfont.cpp
+++ b/engines/ags/lib/alfont/alfont.cpp
@@ -60,7 +60,7 @@ size_t alfont_text_height(ALFONT_FONT *font) {
void alfont_textout(BITMAP *bmp, ALFONT_FONT *font, const char *text, int x, int y, uint32 color) {
Graphics::ManagedSurface &surf = **bmp;
- font->getFont()->drawString(&surf, Common::String(text), x, y, bmp->w - x, color);
+ font->getFont()->drawString(&surf, text, x, y, bmp->w - x, color);
}
void alfont_textout_aa(BITMAP *bmp, ALFONT_FONT *font, const char *text, int x, int y, uint32 color) {
More information about the Scummvm-git-logs
mailing list