aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-09-18 20:40:21 +0800
committerchai <chaifix@163.com>2018-09-18 20:40:21 +0800
commit92bbaa7fbd2da52fd74de5fc470237265a3a3179 (patch)
tree7aede1dcf1fa166084c420a4555398a80b6cdf19
parentfdf641939870b86e3db9995f0ca5c63d486f80b4 (diff)
*egg
-rw-r--r--libjin/Graphics/Font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjin/Graphics/Font.cpp b/libjin/Graphics/Font.cpp
index f30bc88..9d21dba 100644
--- a/libjin/Graphics/Font.cpp
+++ b/libjin/Graphics/Font.cpp
@@ -273,7 +273,7 @@ namespace graphics
{
cursor.x = 0;
cursor.y += descent;
- if (cursor.y + descent > textureHeight)
+ if (cursor.y + descent * 2 > textureHeight)
{
/* create another atlas */
createAtlas();