From 1710965a7caf45037aaa1fe5871abbe3ce616203 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Thu, 21 Jun 2012 20:37:05 +0000 Subject: [PATCH] adjusted size initialization in font textures --- android/core/src/processing/opengl/PFontTexture.java | 2 +- java/libraries/opengl/src/processing/opengl/PFontTexture.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/core/src/processing/opengl/PFontTexture.java b/android/core/src/processing/opengl/PFontTexture.java index 3b604c360..be5c9e73a 100644 --- a/android/core/src/processing/opengl/PFontTexture.java +++ b/android/core/src/processing/opengl/PFontTexture.java @@ -113,7 +113,7 @@ class PFontTexture implements PConstants { h = PApplet.min(2 * textures[currentTex].glHeight, maxTexHeight); resize = true; } else { - h = PApplet.min(PGraphicsOpenGL.maxTextureSize, maxTexHeight / 4); + h = PApplet.min(PGraphicsOpenGL.maxTextureSize, PGL.MAX_FONT_TEX_SIZE / 2, maxTexHeight / 4); resize = false; } diff --git a/java/libraries/opengl/src/processing/opengl/PFontTexture.java b/java/libraries/opengl/src/processing/opengl/PFontTexture.java index 3b604c360..be5c9e73a 100644 --- a/java/libraries/opengl/src/processing/opengl/PFontTexture.java +++ b/java/libraries/opengl/src/processing/opengl/PFontTexture.java @@ -113,7 +113,7 @@ class PFontTexture implements PConstants { h = PApplet.min(2 * textures[currentTex].glHeight, maxTexHeight); resize = true; } else { - h = PApplet.min(PGraphicsOpenGL.maxTextureSize, maxTexHeight / 4); + h = PApplet.min(PGraphicsOpenGL.maxTextureSize, PGL.MAX_FONT_TEX_SIZE / 2, maxTexHeight / 4); resize = false; }