@@ 35,7 35,7 @@ func main() {
var useProfiling bool
flag.BoolVar(&useProfiling, "profile", false, "enable pprof profiling")
go func() {
- w := app.NewWindow()
+ w := app.NewWindow(app.Title("Trideo"))
if err := loop(w, useProfiling); err != nil {
log.Fatal(err)
}
@@ 138,7 138,7 @@ func loop(w *app.Window, useProfiling bool) error {
}
var ops op.Ops
- tickerDuration := time.Second / 15
+ tickerDuration := time.Second / 10
ticker := time.NewTicker(tickerDuration)
var init bool
var d triangle.Delaunay
@@ 249,8 249,8 @@ func Dp(in int) unit.Value {
// visual inspection.
func DebugWindow(result DebugResult) {
width := result.Raw.Rect.Dx() * 4
- height := result.Raw.Rect.Dy() * 4
- w := app.NewWindow(app.Title("Debug"), app.Size(Dp(width), Dp(height*5)))
+ height := result.Raw.Rect.Dy() * 8
+ w := app.NewWindow(app.Title("Debug"), app.MinSize(Dp(width), Dp(height)))
var ops op.Ops
var list layout.List
list.Axis = layout.Vertical