OSDN Git Service

Update Go library to last weekly.
[pf3gnuchains/gcc-fork.git] / libgo / go / exp / gui / x11 / conn.go
index 98c65b9..bf94bca 100644 (file)
@@ -621,7 +621,7 @@ func NewWindowDisplay(display string) (gui.Window, os.Error) {
                return nil, err
        }
 
-       c.img = image.NewRGBA(windowWidth, windowHeight)
+       c.img = image.NewRGBA(image.Rect(0, 0, windowWidth, windowHeight))
        c.eventc = make(chan interface{}, 16)
        c.flush = make(chan bool, 1)
        go c.readSocket()