diff --git a/main.go b/main.go index 5677a3c..853b904 100644 --- a/main.go +++ b/main.go @@ -111,18 +111,17 @@ func main() { sketch.Draw(renderCtx) + rl.DrawText("Mouse right button drag to move, mouse wheel to zoom", 10, 10, 20, rl.White) + + rl.EndDrawing() + if rl.IsKeyDown(rl.KeySpace) { capture := sketch.Capture() - if _, err := storage.Save(capture); err != nil { log.Printf("Error saving snapshot: %v\n", err) } } - rl.DrawText("Mouse right button drag to move, mouse wheel to zoom", 10, 10, 20, rl.White) - - rl.EndDrawing() - for ch := rl.GetCharPressed(); ch != 0; ch = rl.GetCharPressed() { c := rune(ch) if c == 'c' {