Revision: 4843 http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4843&view=rev Author: bphinz Date: 2012-02-05 13:51:58 +0000 (Sun, 05 Feb 2012) Log Message: ----------- Graphics clip rect setting was not being honored, causing full frame repaints!
Modified Paths: -------------- trunk/java/com/tigervnc/vncviewer/DesktopWindow.java trunk/java/com/tigervnc/vncviewer/PixelBufferImage.java Modified: trunk/java/com/tigervnc/vncviewer/DesktopWindow.java =================================================================== --- trunk/java/com/tigervnc/vncviewer/DesktopWindow.java 2012-02-03 05:38:23 UTC (rev 4842) +++ trunk/java/com/tigervnc/vncviewer/DesktopWindow.java 2012-02-05 13:51:58 UTC (rev 4843) @@ -85,8 +85,7 @@ // to work. synchronized public void initGraphics() { - cc.viewport.g = cc.viewport.getGraphics(); - graphics = getComponentGraphics(cc.viewport.g); + graphics = this.getGraphics(); prepareImage(im.image, scaledWidth, scaledHeight, this); } Modified: trunk/java/com/tigervnc/vncviewer/PixelBufferImage.java =================================================================== --- trunk/java/com/tigervnc/vncviewer/PixelBufferImage.java 2012-02-03 05:38:23 UTC (rev 4842) +++ trunk/java/com/tigervnc/vncviewer/PixelBufferImage.java 2012-02-05 13:51:58 UTC (rev 4843) @@ -103,8 +103,7 @@ public void put(int x, int y, int w, int h, Graphics g) { if (ic != null) { ic.setPixels(x, y, w, h, cm, data, width() * y + x, width()); - g.setClip(x, y, w, h); - ic.imageComplete(ImageConsumer.SINGLEFRAMEDONE); + desktop.repaint(x, y, w, h); } } @@ -116,8 +115,7 @@ super.copyRect(x, y, w, h, srcX, srcY); if (ic == null) return; ic.setPixels(x, y, w, h, cm, data, width() * y + x, width()); - g.setClip(x, y, w, h); - ic.imageComplete(ImageConsumer.SINGLEFRAMEDONE); + desktop.repaint(x, y, w, h); } // setColourMapEntries() changes some of the entries in the colourmap. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Tigervnc-commits mailing list Tigervnc-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-commits