Skip to content

Commit dffc722

Browse files
committed
fix: Fix some issues
1 parent 43a02df commit dffc722

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎backends/gdx-backend-moe/src/com/badlogic/gdx/backends/iosmoe/IOSGLKView.java‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ protected IOSGLKView (Pointer peer) {
5151
super(peer);
5252
}
5353

54-
public IOSGLKView init (CGRect bounds, MGLContext context) {
54+
public IOSGLKView init (IOSGraphics graphics, CGRect bounds, MGLContext context) {
5555
initWithFrameContext(bounds, context);
56+
this.graphics = graphics;
5657
return this;
5758
}
5859

@@ -80,9 +81,4 @@ public void touchesMovedWithEvent (NSSet<? extends UITouch> nsSet, UIEvent uiEve
8081
public void drawRect (@ByValue CGRect cgRect) {
8182
graphics.draw(this, cgRect);
8283
}
83-
84-
public void setGraphics (IOSGraphics graphics) {
85-
this.graphics = graphics;
86-
}
87-
8884
}

‎backends/gdx-backend-moe/src/com/badlogic/gdx/backends/iosmoe/IOSGraphics.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ public IOSGraphics (IOSApplication app, IOSApplicationConfiguration config, IOSI
111111
}
112112

113113
IOSViewDelegate viewDelegate = IOSViewDelegate.alloc().initWithGraphics(this);
114-
view = IOSGLKView.alloc().init(new CGRect(new CGPoint(0, 0), new CGSize(screenBounds.width, screenBounds.height)), context);
114+
view = IOSGLKView.alloc().init(this, new CGRect(new CGPoint(0, 0), new CGSize(screenBounds.width, screenBounds.height)),
115+
context);
115116
view.setDelegate(viewDelegate);
116117
view.setDrawableColorFormat(config.colorFormat);
117118
view.setDrawableDepthFormat(config.depthFormat);

‎backends/gdx-backend-moe/src/com/badlogic/gdx/backends/iosmoe/IOSHaptics.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import apple.foundation.NSDictionary;
2626
import apple.foundation.NSError;
2727
import apple.foundation.NSNumber;
28+
import apple.foundation.NSProcessInfo;
2829
import apple.uikit.UIDevice;
2930
import apple.uikit.UIImpactFeedbackGenerator;
3031
import apple.uikit.enums.UIImpactFeedbackStyle;

0 commit comments

Comments
 (0)