summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-14 11:02:59 -0500
committerPietro Gagliardi <[email protected]>2014-02-14 11:02:59 -0500
commit8407bfb0cb9d8e58c40758b552c4eb71fe5f6415 (patch)
tree7c81722daf4426e49ccdd49dc0ff22a39fa96fad /window.go
parent9a4e7bf5eb74ffcef8885f27af9482dfc467542c (diff)
Changed manual sysData construction to use a helper function instead.
Diffstat (limited to 'window.go')
-rw-r--r--window.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/window.go b/window.go
index da5606a..5bf167a 100644
--- a/window.go
+++ b/window.go
@@ -25,11 +25,7 @@ type Window struct {
// NewWindow creates a new window with the given title and size. The window is not constructed at the OS level until a call to Open().
func NewWindow(title string, width int, height int) *Window {
return &Window{
- sysData: &sysData{
- cSysData: cSysData{
- ctype: c_window,
- },
- },
+ sysData: mksysdata(c_window),
initTitle: title,
initWidth: width,
initHeight: height,