diff options
Diffstat (limited to 'src/demos/j2d')
-rwxr-xr-x | src/demos/j2d/TestOverlay.java | 4 | ||||
-rwxr-xr-x | src/demos/j2d/TestTextureRenderer.java | 4 |
2 files changed, 4 insertions, 4 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; diff --git a/src/demos/j2d/TestTextureRenderer.java b/src/demos/j2d/TestTextureRenderer.java index 596115e..5702743 100755 --- a/src/demos/j2d/TestTextureRenderer.java +++ b/src/demos/j2d/TestTextureRenderer.java @@ -126,7 +126,7 @@ public class TestTextureRenderer implements GLEventListener { g2d.setColor(Color.WHITE); g2d.drawString(TEST_STRING, 10, 50); textBounds = gv.getPixelBounds(frc, 10, 50); - renderer.sync(textBounds.x, textBounds.y, textBounds.width, textBounds.height); + renderer.markDirty(textBounds.x, textBounds.y, textBounds.width, textBounds.height); } public void display(GLAutoDrawable drawable) { @@ -151,7 +151,7 @@ public class TestTextureRenderer implements GLEventListener { g2d.fillRect(fpsBounds.x, fpsBounds.y, fpsBounds.width, fpsBounds.height); g2d.setColor(Color.WHITE); g2d.drawString(fpsString, 10, 100); - renderer.sync(fpsBounds.x, fpsBounds.y, fpsBounds.width, fpsBounds.height); + renderer.markDirty(fpsBounds.x, fpsBounds.y, fpsBounds.width, fpsBounds.height); } time.update(); |