Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit b4e62ce

Browse files
author
Yuncong Zhang
committed
Merge branch 'master' of github.com:UnityTech/UIWidgets into layout
2 parents a8d6bc4 + 0533f6a commit b4e62ce

File tree

7 files changed

+726
-5
lines changed

7 files changed

+726
-5
lines changed

Runtime/editor/editor_window.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,9 @@ protected virtual TimeSpan getTime() {
166166

167167
void updatePhysicalSize() {
168168
var size = this.queryWindowSize();
169-
this._lastWindowWidth = size.x;
170-
this._lastWindowHeight = size.y;
171169
this._physicalSize = new Size(
172-
this._lastWindowWidth * this._devicePixelRatio,
173-
this._lastWindowHeight * this._devicePixelRatio);
170+
size.x * this._devicePixelRatio,
171+
size.y * this._devicePixelRatio);
174172
}
175173

176174

0 commit comments

Comments
 (0)