mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-22 07:50:08 +01:00
Compare commits
No commits in common. "b17ae6135eb635594e971bafabae8ad93d7d0bf1" and "24e5751ece712abfc8d54a0497a556e919b25d2e" have entirely different histories.
b17ae6135e
...
24e5751ece
2
geom.go
2
geom.go
@ -121,7 +121,7 @@ func (g *GeoM) Translate(tx, ty float64) {
|
||||
g.ty += ty
|
||||
}
|
||||
|
||||
// Rotate rotates the matrix clockwise by theta.
|
||||
// Rotate rotates the matrix by theta.
|
||||
// The unit is radian.
|
||||
func (g *GeoM) Rotate(theta float64) {
|
||||
if theta == 0 {
|
||||
|
@ -196,6 +196,7 @@ 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