mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-20 15:00:08 +01:00
Compare commits
2 Commits
24e5751ece
...
b17ae6135e
Author | SHA1 | Date | |
---|---|---|---|
|
b17ae6135e | ||
|
2270359cd4 |
2
geom.go
2
geom.go
@ -121,7 +121,7 @@ func (g *GeoM) Translate(tx, ty float64) {
|
||||
g.ty += ty
|
||||
}
|
||||
|
||||
// Rotate rotates the matrix by theta.
|
||||
// Rotate rotates the matrix clockwise by theta.
|
||||
// The unit is radian.
|
||||
func (g *GeoM) Rotate(theta float64) {
|
||||
if theta == 0 {
|
||||
|
@ -196,7 +196,6 @@ func (c *context) swapBuffersOrWait(needsSwapBuffers bool, graphicsDriver graphi
|
||||
}
|
||||
if waitTime > 0 {
|
||||
if delta := waitTime - now.Sub(c.lastSwapBufferTime); delta > 0 {
|
||||
println(waitTime.String(), now.Sub(c.lastSwapBufferTime).String())
|
||||
time.Sleep(delta)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user