Skip to content

Commit

Permalink
oops, fix format errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Nov 13, 2018
1 parent e09e04f commit 7fb478a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion desktop/gl/canvas.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ func (c *canvas) refresh() {

func newCanvas(win *window) *canvas {
return &canvas{window: win, scale: 1.0}
}
}
1 change: 0 additions & 1 deletion desktop/gl/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ func NewGLDriver() fyne.Driver {

return driver
}

12 changes: 6 additions & 6 deletions desktop/gl/loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (

func (d *gLDriver) runGL() {
/*
select {
case <-d.done:
glfw.Terminate()
return
}
select {
case <-d.done:
glfw.Terminate()
return
}
*/

run := true
Expand All @@ -29,4 +29,4 @@ func (d *gLDriver) runGL() {
}
}
glfw.Terminate()
}
}
8 changes: 4 additions & 4 deletions desktop/gl/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type window struct {
fixedSize bool

mouseX, mouseY float64
onClosed func()
onClosed func()
}

func (w *window) Title() string {
Expand Down Expand Up @@ -172,8 +172,8 @@ func (w *window) mouseClicked(viewport *glfw.Window, button glfw.MouseButton, ac
switch button {
case glfw.MouseButtonRight:
ev.Button = fyne.RightMouseButton
// case glfw.MouseButtonMiddle:
// ev.Button = fyne.middleMouseButton
// case glfw.MouseButtonMiddle:
// ev.Button = fyne.middleMouseButton
default:
ev.Button = fyne.LeftMouseButton
}
Expand Down Expand Up @@ -272,4 +272,4 @@ func (d *gLDriver) CreateWindow(title string) fyne.Window {

func (d *gLDriver) AllWindows() []fyne.Window {
return d.windows
}
}

0 comments on commit 7fb478a

Please sign in to comment.