diff options
Diffstat (limited to 'src/classes/com/sun/opengl/util/awt')
-rwxr-xr-x | src/classes/com/sun/opengl/util/awt/gl2/GL2TextRenderer.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/util/awt/gl2/GL2TextRenderer.java b/src/classes/com/sun/opengl/util/awt/gl2/GL2TextRenderer.java index 57cced512..0ec232eca 100755 --- a/src/classes/com/sun/opengl/util/awt/gl2/GL2TextRenderer.java +++ b/src/classes/com/sun/opengl/util/awt/gl2/GL2TextRenderer.java @@ -1202,7 +1202,7 @@ public class GL2TextRenderer { return false; } - public void additionFailed(Rect cause, int attemptNumber) { + public boolean additionFailed(Rect cause, int attemptNumber) { // Heavy hammer -- might consider doing something different packer.clear(); stringLocations.clear(); @@ -1212,6 +1212,16 @@ public class GL2TextRenderer { System.err.println( " *** Cleared all text because addition failed ***"); } + + if (attemptNumber == 0) { + return true; + } + + return false; + } + + public boolean canCompact() { + return true; } public void beginMovement(Object oldBackingStore, Object newBackingStore) { |