This repository was archived by the owner on Apr 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ public void Update() {
31
31
public void OnEnable ( ) {
32
32
this . _lastDevicePixelRatio = GameViewUtil . getGameViewDevicePixelRatio ( ) ;
33
33
}
34
+
35
+ public void onViewMetricsChanged ( ) {
36
+
37
+ }
34
38
35
39
public float devicePixelRatio {
36
40
get { return this . _lastDevicePixelRatio ; }
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public interface DisplayMetrics {
25
25
void OnEnable ( ) ;
26
26
void OnGUI ( ) ;
27
27
void Update ( ) ;
28
+ void onViewMetricsChanged ( ) ;
28
29
29
30
float devicePixelRatio { get ; }
30
31
@@ -46,11 +47,14 @@ public void OnGUI() {
46
47
}
47
48
48
49
public void Update ( ) {
50
+
51
+ }
52
+
53
+ public void onViewMetricsChanged ( ) {
49
54
//view metrics marks dirty
50
55
this . _viewMetrics = null ;
51
56
}
52
57
53
-
54
58
public float devicePixelRatio {
55
59
get {
56
60
if ( this . _devicePixelRatio > 0 ) {
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ bool _mouseEntered {
130
130
131
131
void _handleViewMetricsChanged ( string method , List < JSONNode > args ) {
132
132
this . _windowAdapter . onViewMetricsChanged ( ) ;
133
- this . _displayMetrics . Update ( ) ;
133
+ this . _displayMetrics . onViewMetricsChanged ( ) ;
134
134
}
135
135
136
136
protected override void OnEnable ( ) {
You can’t perform that action at this time.
0 commit comments