aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/vncviewer/DesktopWindow.java
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2012-02-12 20:44:29 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2012-02-12 20:44:29 +0000
commitaf15db239a665030087fe146b20d4b3213708f3d (patch)
tree2efad69694d73cdb8fc90af86af26ef44e10b084 /java/com/tigervnc/vncviewer/DesktopWindow.java
parent8d37f2054b6da02957b12d02aaf96dd5eecc89c7 (diff)
downloadtigervnc-af15db239a665030087fe146b20d4b3213708f3d.tar.gz
tigervnc-af15db239a665030087fe146b20d4b3213708f3d.zip
Adds support for fence & continuous updates extensions to java viewer. Adds low level hooks for TurboVNC fine grained quality controls.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4847 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/com/tigervnc/vncviewer/DesktopWindow.java')
-rw-r--r--java/com/tigervnc/vncviewer/DesktopWindow.java19
1 files changed, 8 insertions, 11 deletions
diff --git a/java/com/tigervnc/vncviewer/DesktopWindow.java b/java/com/tigervnc/vncviewer/DesktopWindow.java
index 53d2980c..814b9d06 100644
--- a/java/com/tigervnc/vncviewer/DesktopWindow.java
+++ b/java/com/tigervnc/vncviewer/DesktopWindow.java
@@ -1,4 +1,5 @@
-/* Copyright (C) 2010 D. R. Commander. All Rights Reserved.
+/* Copyright (C) 2011-2012 TigerVNC Team.
+ * Copyright (C) 2010 D. R. Commander. All Rights Reserved.
* Copyright (C) 2009 Paul Donohue. All Rights Reserved.
* Copyright (C) 2006 Constantin Kaplinsky. All Rights Reserved.
* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
@@ -178,6 +179,10 @@ class DesktopWindow extends JPanel implements
return;
}
+ public void setServerPF(PixelFormat pf) {
+ im.setPF(pf);
+ }
+
public PixelFormat getPreferredPF() {
return im.getNativePF();
}
@@ -202,9 +207,8 @@ class DesktopWindow extends JPanel implements
}
}
-// Update the actual window with the changed parts of the framebuffer.
-
- public void framebufferUpdateEnd()
+ // Update the actual window with the changed parts of the framebuffer.
+ public void updateWindow()
{
drawInvalidRect();
}
@@ -246,19 +250,12 @@ class DesktopWindow extends JPanel implements
invalidBottom = y + h;
invalidRect = true;
}
-
- if ((invalidRight - invalidLeft) * (invalidBottom - invalidTop) > 100000)
- drawInvalidRect();
}
public void beginRect(int x, int y, int w, int h, int encoding) {
invalidRect = false;
}
- public void endRect(int x, int y, int w, int h, int encoding) {
- drawInvalidRect();
- }
-
final public void fillRect(int x, int y, int w, int h, int pix)
{
if (overlapsCursor(x, y, w, h)) hideLocalCursor();