From 5f0ba21e307aa252288e850d41a1dfc12f8dd69e Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 30 Dec 2010 19:13:45 +0000 Subject: [PATCH] Fix bug where the first gl glyph in each row after the first would be overwritten, resulting in the incorrect number being shown in the cross visual tool Originally committed to SVN as r5060. --- aegisub/src/gl_text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aegisub/src/gl_text.cpp b/aegisub/src/gl_text.cpp index f5c43ec93..fdad91fd4 100644 --- a/aegisub/src/gl_text.cpp +++ b/aegisub/src/gl_text.cpp @@ -288,8 +288,9 @@ bool OpenGLTextTexture::TryToInsert(OpenGLTextGlyph &glyph) { if (nextY+h > height) return false; x = 0; y = nextY; - nextY = y+h; Insert(glyph); + x += w; + nextY = y+h; return true; } }