瀏覽代碼

Fixes #86

tags/v0.1.2^2
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) {


Loading…
取消
儲存