From 0dbc1532637b91bf2f19d02fb7d87420e5d4a625 Mon Sep 17 00:00:00 2001 From: enikey Date: Fri, 19 Dec 2008 08:51:47 +0000 Subject: [PATCH] [Developement] Class VncCanvas implements Repaintable interface. Method scheludeRepaint maked public. 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/src/com/tightvnc/vncviewer/VncCanvas.java b/java/src/com/tightvnc/vncviewer/VncCanvas.java index ed8d979b..ff7921ab 100644 --- a/java/src/com/tightvnc/vncviewer/VncCanvas.java +++ b/java/src/com/tightvnc/vncviewer/VncCanvas.java @@ -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); -- 2.39.5