Compare commits

..

No commits in common. "b17ae6135eb635594e971bafabae8ad93d7d0bf1" and "24e5751ece712abfc8d54a0497a556e919b25d2e" have entirely different histories.

2 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,7 @@ func (g *GeoM) Translate(tx, ty float64) {
g.ty += ty g.ty += ty
} }
// Rotate rotates the matrix clockwise by theta. // Rotate rotates the matrix 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,6 +196,7 @@ 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)
} }
} }