Compare commits

...

2 Commits

Author SHA1 Message Date
Barış
b17ae6135e
ebiten: update GeoM.Rotate() comment (#3106) 2024-09-17 23:47:17 +09:00
Hajime Hoshi
2270359cd4 internal/ui: remove println 2024-09-17 23:12:16 +09:00
2 changed files with 1 additions and 2 deletions

View File

@ -121,7 +121,7 @@ func (g *GeoM) Translate(tx, ty float64) {
g.ty += ty g.ty += ty
} }
// Rotate rotates the matrix by theta. // Rotate rotates the matrix clockwise by theta.
// The unit is radian. // The unit is radian.
func (g *GeoM) Rotate(theta float64) { func (g *GeoM) Rotate(theta float64) {
if theta == 0 { if theta == 0 {

View File

@ -196,7 +196,6 @@ func (c *context) swapBuffersOrWait(needsSwapBuffers bool, graphicsDriver graphi
} }
if waitTime > 0 { if waitTime > 0 {
if delta := waitTime - now.Sub(c.lastSwapBufferTime); delta > 0 { if delta := waitTime - now.Sub(c.lastSwapBufferTime); delta > 0 {
println(waitTime.String(), now.Sub(c.lastSwapBufferTime).String())
time.Sleep(delta) time.Sleep(delta)
} }
} }