From 68b60be0d1da84aa670d29b87b26ab3e3db51b69 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 15 Oct 2018 12:49:54 +0800 Subject: =?UTF-8?q?*=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/Font/TextureFont.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libjin/Graphics/Font/TextureFont.cpp') diff --git a/src/libjin/Graphics/Font/TextureFont.cpp b/src/libjin/Graphics/Font/TextureFont.cpp index 4dde236..7ee1962 100644 --- a/src/libjin/Graphics/Font/TextureFont.cpp +++ b/src/libjin/Graphics/Font/TextureFont.cpp @@ -231,6 +231,7 @@ namespace graphics TextureFont::TextureFont(const Bitmap* bitmap, const Content& codepoints, int cellw, int cellh) : Drawable(bitmap) + , Font(cellh) { TextureGlyph glyph; Vector2 count(bitmap->getWidth() / cellw, bitmap->getHeight() / cellh); @@ -251,6 +252,7 @@ namespace graphics TextureFont::TextureFont(const Bitmap* bitmap, const Content& codepoints, Color mask, int cellh) : Drawable(bitmap) + , Font(cellh) { TextureGlyph glyph; glyph.h = cellh; -- cgit v1.1-26-g67d0