[X2Go-Commits] [python-x2go] 01/01: Return color depth on MS Windows machines.

git-admin at x2go.org git-admin at x2go.org
Fri Feb 7 13:10:22 CET 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch brokerclient
in repository python-x2go.

commit 4ba8ae7296ba5c996ec1e4607c46d284efd27c91
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Feb 7 13:09:43 2014 +0100

    Return color depth on MS Windows machines.
---
 debian/changelog |    1 +
 x2go/utils.py    |    1 +
 2 files changed, 2 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 99929ee..bc14f99 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,7 @@ python-x2go (0.4.0.10-0x2go1) UNRELEASED; urgency=low
   * New upstream version (0.4.0.10):
     - Don't pass default values to ConfigParser constructor when initializing
       an INI file.
+    - Return color depth on MS Windows machines.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Sun, 05 Jan 2014 16:35:57 +0100
 
diff --git a/x2go/utils.py b/x2go/utils.py
index 3f24786..13b2fe6 100644
--- a/x2go/utils.py
+++ b/x2go/utils.py
@@ -562,6 +562,7 @@ def local_color_depth():
         dc = win32gui.GetDC(None)
         _depth = win32print.GetDeviceCaps(dc, win32con.BITSPIXEL) * win32print.GetDeviceCaps(dc, win32con.PLANES)
         win32gui.ReleaseDC(None, dc)
+        return _depth
 
 def is_color_depth_ok(depth_session, depth_local):
     """\

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/python-x2go.git



More information about the x2go-commits mailing list