[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 release/0.4.0.x
in repository python-x2go.

commit 9f1bd9b26182a2846a13fe4ec41da643dd97f16a
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 46db356..40be67c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,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 39f5442..a2823ee 100644
--- a/x2go/utils.py
+++ b/x2go/utils.py
@@ -560,6 +560,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