added libvnc/ with RealVNC compatibility fix
[presencevnc] / libvnc / libvncserver / scale.h
diff --git a/libvnc/libvncserver/scale.h b/libvnc/libvncserver/scale.h
new file mode 100644 (file)
index 0000000..13dd942
--- /dev/null
@@ -0,0 +1,10 @@
+
+int ScaleX(rfbScreenInfoPtr from, rfbScreenInfoPtr to, int x);
+int ScaleY(rfbScreenInfoPtr from, rfbScreenInfoPtr to, int y);
+void rfbScaledCorrection(rfbScreenInfoPtr from, rfbScreenInfoPtr to, int *x, int *y, int *w, int *h, char *function);
+void rfbScaledScreenUpdateRect(rfbScreenInfoPtr screen, rfbScreenInfoPtr ptr, int x0, int y0, int w0, int h0);
+void rfbScaledScreenUpdate(rfbScreenInfoPtr screen, int x1, int y1, int x2, int y2);
+rfbScreenInfoPtr rfbScaledScreenAllocate(rfbClientPtr cl, int width, int height);
+rfbScreenInfoPtr rfbScalingFind(rfbClientPtr cl, int width, int height);
+void rfbScalingSetup(rfbClientPtr cl, int width, int height);
+int rfbSendNewScaleSize(rfbClientPtr cl);