rm redundant updatePixelSize
This commit is contained in:
1 parent
b389365656
commit
b6b03eda2f
4 files changed
+15
-3
No files matched your search
@@ -99,13 +99,11 @@ final class RaylibGLNSView: NSOpenGLView {
|
||||
|
||||
override func reshape() {
|
||||
super.reshape()
|
||||
updatePixelSize()
|
||||
needsDisplay = true
|
||||
}
|
||||
|
||||
override func viewDidChangeBackingProperties() {
|
||||
super.viewDidChangeBackingProperties()
|
||||
updatePixelSize()
|
||||
needsDisplay = true
|
||||
}
|
||||
|
||||
@@ -125,7 +123,7 @@ final class RaylibGLNSView: NSOpenGLView {
|
||||
|
||||
let t = Float(CACurrentMediaTime() - startTime)
|
||||
|
||||
sr_set_rotation(t * 18.0, t * 60.0, 0.0)
|
||||
sr_set_rotation(t * 6.0, t * 18.0, 0.0)
|
||||
|
||||
sr_render()
|
||||
|
||||
|
||||
Reference in new issue
Block a user