浏览代码

rename

/main
fzhangtj 6 年前
当前提交
6f7c8cf8
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 2
      Runtime/editor/editor_utils.cs
  2. 4
      Runtime/engine/DisplayMetrics.cs
  3. 2
      Runtime/engine/UIWidgetsPanel.cs

2
Runtime/editor/editor_utils.cs


this._lastDevicePixelRatio = GameViewUtil.getGameViewDevicePixelRatio();
}
public float DevicePixelRatio {
public float devicePixelRatio {
get { return this._lastDevicePixelRatio; }
}
}

4
Runtime/engine/DisplayMetrics.cs


void OnGUI();
void Update();
float DevicePixelRatio { get; }
float devicePixelRatio { get; }
}
public class PlayerDisplayMetrics: DisplayMetrics {

}
public float DevicePixelRatio {
public float devicePixelRatio {
get {
if (this._devicePixelRatio > 0) {
return this._devicePixelRatio;

2
Runtime/engine/UIWidgetsPanel.cs


get {
return this.devicePixelRatioOverride > 0
? this.devicePixelRatioOverride
: this._displayMetrics.DevicePixelRatio;
: this._displayMetrics.devicePixelRatio;
}
}

正在加载...
取消
保存