Skip to content

Commit fb60ef8

Browse files
added default canvas size field to the Gopaint struct
1 parent 5024af5 commit fb60ef8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gopaint.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import (
99

1010
type Gopaint struct {
1111
reza.Application
12-
Title string
12+
Title string
13+
DefaultCanvasSize reza.Size
1314
}
1415

1516
var app *Gopaint
@@ -32,6 +33,10 @@ func main() {
3233
app = &Gopaint{
3334
Application: reza.NewApplication(),
3435
Title: "GoPaint",
36+
DefaultCanvasSize: reza.Size{
37+
Width: 1920,
38+
Height: 1080,
39+
},
3540
}
3641
app.SetMainWindow(NewMainWindow())
3742
if app.GetMainWindow().Show() {

0 commit comments

Comments
 (0)