]> source.dussan.org Git - tigervnc.git/commitdiff
[Developement] Class VncCanvas implements Repaintable interface. Method scheludeRepai...
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Fri, 19 Dec 2008 08:51:47 +0000 (08:51 +0000)
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Fri, 19 Dec 2008 08:51:47 +0000 (08:51 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3434 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/vncviewer/VncCanvas.java

index ed8d979b4cdeb022328e80eb3c9430621d53d0f1..ff7921abda7aec8b822011afc4530adbe264c0b5 100644 (file)
@@ -23,6 +23,7 @@
 
 package com.tightvnc.vncviewer;
 
+import com.tightvnc.decoder.common.Repaintable;
 import java.awt.*;
 import java.awt.event.*;
 import java.awt.image.*;
@@ -36,7 +37,8 @@ import java.util.zip.*;
 //
 
 class VncCanvas extends Canvas
-  implements KeyListener, MouseListener, MouseMotionListener, RecordInterface {
+  implements KeyListener, MouseListener, MouseMotionListener, RecordInterface,
+             Repaintable {
 
   VncViewer viewer;
   RfbProto rfb;
@@ -1595,7 +1597,7 @@ class VncCanvas extends Canvas
   // Tell JVM to repaint specified desktop area.
   //
 
-  void scheduleRepaint(int x, int y, int w, int h) {
+  public void scheduleRepaint(int x, int y, int w, int h) {
     // Request repaint, deferred if necessary.
     if (rfb.framebufferWidth == scaledWidth) {
       repaint(viewer.deferScreenUpdates, x, y, w, h);