[prev in list] [next in list] [prev in thread] [next in thread]
List: tigervnc-commits
Subject: [Tigervnc-commits] SF.net SVN: tigervnc:[5049] trunk/java/com/tigervnc/vncviewer/Viewport.java
From: bphinz () users ! sourceforge ! net
Date: 2013-02-21 3:11:15
Message-ID: E1U8MZ1-0006rw-Bj () sfp-svn-4 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 5049
http://tigervnc.svn.sourceforge.net/tigervnc/?rev=5049&view=rev
Author: bphinz
Date: 2013-02-21 03:11:14 +0000 (Thu, 21 Feb 2013)
Log Message:
-----------
Fixes yet another case where the viewport background wasn't painted black when the \
desktop size was less than the viewport size. Also set both scrollbar policies just \
as a precaution.
Modified Paths:
--------------
trunk/java/com/tigervnc/vncviewer/Viewport.java
Modified: trunk/java/com/tigervnc/vncviewer/Viewport.java
===================================================================
--- trunk/java/com/tigervnc/vncviewer/Viewport.java 2013-02-19 14:30:32 UTC (rev \
5048)
+++ trunk/java/com/tigervnc/vncviewer/Viewport.java 2013-02-21 03:11:14 UTC (rev \
5049) @@ -68,23 +68,23 @@
scaleString.equalsIgnoreCase("FixedRatio")) {
if ((sp.getSize().width != cc.desktop.scaledWidth) ||
(sp.getSize().height != cc.desktop.scaledHeight)) {
- int policy = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER;
- sp.setHorizontalScrollBarPolicy(policy);
cc.desktop.setScaledSize();
- sp.setSize(new Dimension(cc.desktop.scaledWidth,
- cc.desktop.scaledHeight));
+ sp.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
+ sp.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
sp.validate();
if (getExtendedState() != JFrame.MAXIMIZED_BOTH &&
- scaleString.equalsIgnoreCase("FixedRatio") &&
!cc.fullScreen) {
+ sp.setSize(new Dimension(cc.desktop.scaledWidth,
+ cc.desktop.scaledHeight));
int w = cc.desktop.scaledWidth + getInsets().left + getInsets().right;
int h = cc.desktop.scaledHeight + getInsets().top + \
getInsets().bottom;
- setSize(w, h);
+ if (scaleString.equalsIgnoreCase("FixedRatio"))
+ setSize(w, h);
}
}
} else {
- int policy = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
- sp.setHorizontalScrollBarPolicy(policy);
+ sp.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
+ sp.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
sp.validate();
}
if (cc.desktop.cursor != null) {
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic