changeset 4897:aec474945f1c

Removed println and added extra check for 0 width / height when drawing dirty regions (since the code in paintOverdraw is unhappy about such things, and you can't draw a rect with 0 width or height anyway).
author rbair
date Fri, 30 Aug 2013 10:00:26 -0700
parents bf594c19a7a6
children 3e92a5d12221
files modules/graphics/src/main/java/com/sun/javafx/tk/quantum/ViewPainter.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/ViewPainter.java	Fri Aug 30 09:58:50 2013 -0700
+++ b/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/ViewPainter.java	Fri Aug 30 10:00:26 2013 -0700
@@ -264,7 +264,6 @@
                 NodePath path = getRootPath(i);
                 path.clear();
                 root.getRenderRoot(getRootPath(i), dirtyRegionContainer.getDirtyRegion(i), i, tx, projTx);
-                System.out.println(path);
             }
             if (PULSE_LOGGING_ENABLED) {
                 PULSE_LOGGER.renderMessage(start, System.currentTimeMillis(), "Render Roots Discovered");
@@ -361,7 +360,7 @@
                         backBufferGraphics.setPaint(new Color(1, 0, 0, .3f));
                         backBufferGraphics.drawRect(clip.x, clip.y, clip.width, clip.height);
                     }
-                } else {
+                } else if (width > 0 && height > 0) {
                     // In this case there were no dirty regions, so the clip is the entire scene
                     final Rectangle clip = new Rectangle(0, 0, width, height);
                     assert backBufferGraphics.getClipRectIndex() == 0;