Big Bad Waffle 7 роки тому
джерело
коміт
321440413f
1 змінених файлів з 4 додано та 2 видалено
  1. +4
    -2
      src/client/js/renderer.js

+ 4
- 2
src/client/js/renderer.js Переглянути файл

@@ -181,8 +181,10 @@ define([
},

onResize: function() {
this.width = $('body').width();
this.height = $('body').height();
var zoom = window.devicePixelRatio;

this.width = $('body').width() * zoom;
this.height = $('body').height() * zoom;

this.renderer.resize(this.width, this.height);
if (window.player) {


Завантаження…
Відмінити
Зберегти