summaryrefslogtreecommitdiffstats
path: root/src/demos/j2d/TestOverlay.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/j2d/TestOverlay.java')
-rwxr-xr-xsrc/demos/j2d/TestOverlay.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/j2d/TestOverlay.java b/src/demos/j2d/TestOverlay.java
index adc8ba7..b0bcae2 100755
--- a/src/demos/j2d/TestOverlay.java
+++ b/src/demos/j2d/TestOverlay.java
@@ -145,7 +145,7 @@ public class TestOverlay implements GLEventListener {
g2d.fillRect(x + fpsBounds.x, y + fpsBounds.y, fpsBounds.width, fpsBounds.height);
g2d.setColor(Color.WHITE);
g2d.drawString(fpsString, x, y);
- overlay.sync(x + fpsBounds.x, y + fpsBounds.y, fpsBounds.width, fpsBounds.height);
+ overlay.markDirty(x + fpsBounds.x, y + fpsBounds.y, fpsBounds.width, fpsBounds.height);
}
time.update();
@@ -191,7 +191,7 @@ public class TestOverlay implements GLEventListener {
union.add(lastTextBounds);
}
// Put a little slop around this text due to apparent rounding errors
- overlay.sync(union.x, union.y, union.width + 10, union.height + 10);
+ overlay.markDirty(union.x, union.y, union.width + 10, union.height + 10);
// Move down the text bounds
lastTextBounds = textBounds;