Allow the windows to be resizeable
This commit is contained in:
@@ -22,9 +22,10 @@ type Window struct {
|
||||
// To invert things so 0,0 is the *top left*, apply the InvertY` matrix
|
||||
func NewWindow(title string) (*Window, error) {
|
||||
cfg := pixelgl.WindowConfig{
|
||||
Title: title,
|
||||
Bounds: pixel.R(0, 0, float64(*winX), float64(*winY)),
|
||||
VSync: true,
|
||||
Title: title,
|
||||
Bounds: pixel.R(0, 0, float64(*winX), float64(*winY)),
|
||||
VSync: true,
|
||||
Resizable: true,
|
||||
}
|
||||
|
||||
pixelWindow, err := pixelgl.NewWindow(cfg)
|
||||
|
Reference in New Issue
Block a user