mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 22:51:22 +00:00
Add support for DPI within size instruction and client info.
This commit is contained in:
@@ -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