Revision: 4850
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4850&view=rev
Author:   dcommander
Date:     2012-02-12 22:20:48 +0000 (Sun, 12 Feb 2012)
Log Message:
-----------
Graphics clip rect setting was not being honored, causing full frame repaints!

Modified Paths:
--------------
    branches/1_2/java/com/tigervnc/vncviewer/DesktopWindow.java
    branches/1_2/java/com/tigervnc/vncviewer/PixelBufferImage.java

Modified: branches/1_2/java/com/tigervnc/vncviewer/DesktopWindow.java
===================================================================
--- branches/1_2/java/com/tigervnc/vncviewer/DesktopWindow.java 2012-02-12 
22:10:01 UTC (rev 4849)
+++ branches/1_2/java/com/tigervnc/vncviewer/DesktopWindow.java 2012-02-12 
22:20:48 UTC (rev 4850)
@@ -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: branches/1_2/java/com/tigervnc/vncviewer/PixelBufferImage.java
===================================================================
--- branches/1_2/java/com/tigervnc/vncviewer/PixelBufferImage.java      
2012-02-12 22:10:01 UTC (rev 4849)
+++ branches/1_2/java/com/tigervnc/vncviewer/PixelBufferImage.java      
2012-02-12 22:20:48 UTC (rev 4850)
@@ -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.


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to