Fix text rendering and saving

This commit is contained in:
Joel Teichroeb 2015-02-01 08:37:42 -08:00
parent 1e5f5d6947
commit 178b31822a
3 changed files with 23 additions and 6 deletions

View file

@ -1473,8 +1473,9 @@ void GfxOpenGL::drawTextObject(const TextObject *text) {
if (g_grim->getGameType() == GType_GRIM)
w += font->getBaseOffsetY();
float z = x + font->getCharStartingCol(character);
z *= _scaleW;
w *= _scaleH;
// TODO: We can't scale in the remastered version
//z *= _scaleW;
//w *= _scaleH;
glBindTexture(GL_TEXTURE_2D, texture);
float width = 1 / 16.f;
float cx = ((character - 1) % 16) / 16.0f;