[X2Go-Commits] [x2gokdrive] 01/01: Calculate screen dimensions (in mm) according to dpi value. Default DPI (Xorg) is 75. User can set DPI using -dpi command line option.
git-admin at x2go.org
git-admin at x2go.org
Tue Jun 18 07:10:43 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2gokdrive.
commit 8be72df47995df547618ab2e7f45fb6bd675a528
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date: Tue Jun 18 07:10:34 2019 +0200
Calculate screen dimensions (in mm) according to dpi value. Default DPI (Xorg) is 75. User can set DPI using -dpi command line option.
---
debian/changelog | 4 ++++
x2gokdrive.c | 5 ++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index c0426e1..be4001a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,9 @@
x2gokdrive (0.0.0.1-0x2go1) UNRELEASED; urgency=medium
+ [ Mike Gabriel ]
* Initial release.
+ [ Oleksandr Shneyder ]
+ * Calculate screen dimensions (in mm) according to dpi value. Default DPI (Xorg) is 75. User can set DPI using -dpi command line option.
+
-- Mike Gabriel <mike.gabriel at das-netzwerkteam.de> Tue, 04 Jun 2019 14:10:43 +0200
diff --git a/x2gokdrive.c b/x2gokdrive.c
index 4d9ea0c..14f3419 100644
--- a/x2gokdrive.c
+++ b/x2gokdrive.c
@@ -501,9 +501,8 @@ ephyrRandRSetConfig(ScreenPtr pScreen,
screen->width = newwidth;
screen->height = newheight;
- #warning get this values from client!!!!
- screen->width_mm=(int)(screen->width*0.311);
- screen->height_mm=(int)(screen->height*0.309);
+ screen->width_mm=(int)((double)screen->width/monitorResolution*25.4);
+ screen->height_mm=(int)((double)screen->height/monitorResolution*25.4);
scrpriv->win_width = screen->width;
scrpriv->win_height = screen->height;
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdrive.git
More information about the x2go-commits
mailing list