This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository x2gokdrive. from 5e3ad2a VERSION.x2gokdrive: Fix typo in version number. new 8be72df Calculate screen dimensions (in mm) according to dpi value. Default DPI (Xorg) is 75. User can set DPI using -dpi command line option. The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/changelog | 4 ++++ x2gokdrive.c | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdrive.git
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@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@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