瀏覽代碼

heh whoops accidentally reverted to lower-left origin, fixed

Bill Meltsner 15 年之前
父節點
當前提交
b94cb9ca62
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/graphics/opengl/Font.cpp

+ 1 - 1
src/modules/graphics/opengl/Font.cpp

@@ -72,7 +72,7 @@ namespace opengl
 		for (unsigned int i = 0; i < text.size(); i++) {
 			int g = (int)text[i];
 			if (!glyphs[g]) g = 32; // space
-			glyphs[g]->draw(bearingX[g] + s, -bearingY[g], 0, 1, 1, 0, 0);
+			glyphs[g]->draw(bearingX[g] + s, -bearingY[g]+height, 0, 1, 1, 0, 0);
 			s += spacing[g] * mSpacing;
 		}
 		glPopMatrix();