Add support for DPI within size instruction and client info.
This commit is contained in:
1 parent
9b20d5e1eb
commit
b722cf5977
5 files changed
+46
-8
No files matched your search
@@ -953,7 +953,11 @@ GuacUI.Client.attach = function(guac) {
|
||||
*/
|
||||
window.onresize = function() {
|
||||
|
||||
guac.sendSize(window.innerWidth, window.innerHeight);
|
||||
var pixel_density = window.devicePixelRatio || 1;
|
||||
var width = window.innerWidth * pixel_density;
|
||||
var height = window.innerHeight * pixel_density;
|
||||
|
||||
guac.sendSize(width, height);
|
||||
GuacUI.Client.updateDisplayScale();
|
||||
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user