rm redundant updatePixelSize

This commit is contained in:
Михаил Капелько committed 2026-10-17 20:06:54 +03:00
1 parent b389365656
commit b6b03eda2f
4 files changed
+15 -3

No files matched your search

+1 -3
View File
@@ -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()