summaryrefslogtreecommitdiffstats
path: root/x11vnc/misc/turbovnc/convert
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/misc/turbovnc/convert')
-rwxr-xr-xx11vnc/misc/turbovnc/convert13
1 files changed, 8 insertions, 5 deletions
diff --git a/x11vnc/misc/turbovnc/convert b/x11vnc/misc/turbovnc/convert
index fdd0dbb..917bf3f 100755
--- a/x11vnc/misc/turbovnc/convert
+++ b/x11vnc/misc/turbovnc/convert
@@ -11,6 +11,7 @@ while (<>) {
#define xalloc malloc
#define xrealloc realloc
#define rfbTightNoZlib 0x0A
+#define tightSubsampLevel correMaxWidth
END
next;
}
@@ -22,11 +23,13 @@ END
$_ =~ s/\b\Q$func\E\b(\s*)\(/$func$1(cl, /;
}
}
- if (/^\s*subsampLevel\s*=\s*cl/) {
- $_ = "//$_";
- print "subsampLevel = 0;\n";
- }
- $_ =~ s/cl->tightQualityLevel;/cl->tightQualityLevel * 10;/;
+
+# if (/^\s*subsampLevel\s*=\s*cl/) {
+# $_ = "//$_";
+# print "subsampLevel = 0;\n";
+# }
+
+# $_ =~ s/cl->tightQualityLevel;/cl->tightQualityLevel * 10;/;
$_ =~ s/rfbScreen.pfbMemory/cl->scaledScreen->frameBuffer/g;
$_ =~ s/rfbScreen.paddedWidthInBytes/cl->scaledScreen->paddedWidthInBytes/g;
OpenPOWER on IntegriCloud