summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormetalefty <meta@vmeta.jp>2016-12-03 20:24:10 +0900
committerGitHub <noreply@github.com>2016-12-03 20:24:10 +0900
commit42d370fcddcbf131618b2a9b741203952a3242db (patch)
treeaea68173a11dfcda2ac057dd4225537a3fafeb73
parentfb892c7d800aa0bb3858b09d4820c53a3bfaf112 (diff)
parenta40be19c7b59865932ab2133ac583a15acd07ce4 (diff)
downloadxrdp-proprietary-42d370fcddcbf131618b2a9b741203952a3242db.tar.gz
xrdp-proprietary-42d370fcddcbf131618b2a9b741203952a3242db.zip
Merge pull request #518 from proski/randr
Provide reasonable hTotal, vTotal and dotClock for the display mode
-rw-r--r--xorg/X11R7.6/rdp/rdprandr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg/X11R7.6/rdp/rdprandr.c b/xorg/X11R7.6/rdp/rdprandr.c
index 2a040a9b..664a2244 100644
--- a/xorg/X11R7.6/rdp/rdprandr.c
+++ b/xorg/X11R7.6/rdp/rdprandr.c
@@ -321,11 +321,15 @@ rdpRRAddOutput(const char *aname, int x, int y, int width, int height)
RROutputPtr output;
xRRModeInfo modeInfo;
char name[64];
+ const int vfreq = 50;
sprintf (name, "%dx%d", width, height);
memset (&modeInfo, 0, sizeof(modeInfo));
modeInfo.width = width;
modeInfo.height = height;
+ modeInfo.hTotal = width;
+ modeInfo.vTotal = height;
+ modeInfo.dotClock = vfreq * width * height;
modeInfo.nameLength = strlen(name);
mode = RRModeGet(&modeInfo, name);
if (mode == 0)