[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tigervnc-commits
Subject:    [Tigervnc-commits] SF.net SVN: tigervnc:[5042] trunk/java/com/tigervnc/vncviewer
From:       bphinz () users ! sourceforge ! net
Date:       2013-02-18 21:28:08
Message-ID: E1U7YFs-0004NZ-K0 () sfp-svn-3 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 5042
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=5042&view=rev
Author:   bphinz
Date:     2013-02-18 21:28:07 +0000 (Mon, 18 Feb 2013)
Log Message:
-----------
r5037 was not quite right. Both the viewport and scrollbar background colors were JRE \
dependent.

Revision Links:
--------------
    http://tigervnc.svn.sourceforge.net/tigervnc/?rev=5037&view=rev

Modified Paths:
--------------
    trunk/java/com/tigervnc/vncviewer/DesktopWindow.java
    trunk/java/com/tigervnc/vncviewer/Viewport.java

Modified: trunk/java/com/tigervnc/vncviewer/DesktopWindow.java
===================================================================
--- trunk/java/com/tigervnc/vncviewer/DesktopWindow.java	2013-02-15 08:33:39 UTC (rev \
                5041)
+++ trunk/java/com/tigervnc/vncviewer/DesktopWindow.java	2013-02-18 21:28:07 UTC (rev \
5042) @@ -2,7 +2,7 @@
  * Copyright (C) 2006 Constantin Kaplinsky.  All Rights Reserved.
  * Copyright (C) 2009 Paul Donohue.  All Rights Reserved.
  * Copyright (C) 2010, 2012 D. R. Commander.  All Rights Reserved.
- * Copyright (C) 2011-2012 Brian P. Hinz
+ * Copyright (C) 2011-2013 Brian P. Hinz
  * 
  * This is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -55,8 +55,7 @@
   public DesktopWindow(int width, int height, PixelFormat serverPF, CConn cc_) {
     cc = cc_;
     setSize(width, height);
-    setBackground(Color.BLACK);
-    setOpaque(true);
+    setOpaque(false);
     GraphicsEnvironment ge =
       GraphicsEnvironment.getLocalGraphicsEnvironment();
     GraphicsDevice gd = ge.getDefaultScreenDevice();

Modified: trunk/java/com/tigervnc/vncviewer/Viewport.java
===================================================================
--- trunk/java/com/tigervnc/vncviewer/Viewport.java	2013-02-15 08:33:39 UTC (rev \
                5041)
+++ trunk/java/com/tigervnc/vncviewer/Viewport.java	2013-02-18 21:28:07 UTC (rev \
5042) @@ -1,5 +1,5 @@
 /* Copyright (C) 2002-2005 RealVNC Ltd.  All Rights Reserved.
- * Copyright (C) 2011-2012 Brian P. Hinz
+ * Copyright (C) 2011-2013 Brian P. Hinz
  * Copyright (C) 2012 D. R. Commander.  All Rights Reserved.
  * 
  * This is free software; you can redistribute it and/or modify
@@ -43,6 +43,7 @@
     UIManager.getDefaults().put("ScrollPane.ancestorInputMap", 
       new UIDefaults.LazyInputMap(new Object[]{}));
     sp = new JScrollPane();
+    sp.getViewport().setBackground(Color.BLACK);
     sp.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
     getContentPane().add(sp);
     addWindowFocusListener(new WindowAdapter() {
@@ -107,7 +108,6 @@
     }
     if (!cc.fullScreen)
       setLocation(x, y);
-    getContentPane().setBackground(Color.BLACK);
   }
 
   public static Window getFullScreenWindow() {

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.


------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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