gofmt everythign

This commit is contained in:
Liam Galvin 2018-11-29 13:04:47 +00:00
parent 16e369ef1d
commit adbbf0f5cf
7 changed files with 18 additions and 20 deletions

View File

@ -216,7 +216,6 @@ func (buffer *Buffer) StartSelection(col uint16, viewRow uint16) {
if buffer.selectionComplete { if buffer.selectionComplete {
buffer.selectionEnd = nil buffer.selectionEnd = nil
if buffer.selectionStart != nil && time.Since(buffer.selectionClickTime) < time.Millisecond*500 { if buffer.selectionStart != nil && time.Since(buffer.selectionClickTime) < time.Millisecond*500 {
if buffer.selectionExpanded { if buffer.selectionExpanded {
//select whole line! //select whole line!

View File

@ -44,7 +44,6 @@ func (gui *GUI) loadFonts() error {
gui.fontMap.defaultBoldFont = boldFont gui.fontMap.defaultBoldFont = boldFont
} }
// add special non-ascii fonts here // add special non-ascii fonts here
return nil return nil

View File

@ -395,6 +395,7 @@ func(gui *GUI) createWindowWithOpenGLVersion(major int, minor int) (*glfw.Window
return window, nil return window, nil
} }
// initOpenGL initializes OpenGL and returns an intiialized program. // initOpenGL initializes OpenGL and returns an intiialized program.
func (gui *GUI) createProgram() (uint32, error) { func (gui *GUI) createProgram() (uint32, error) {
if err := gl.Init(); err != nil { if err := gl.Init(); err != nil {

View File

@ -57,7 +57,6 @@ func (r *OpenGLRenderer) newRectangle(x float32, y float32, colourAttr uint32) *
halfAreaWidth := float32(r.areaWidth / 2) halfAreaWidth := float32(r.areaWidth / 2)
halfAreaHeight := float32(r.areaHeight / 2) halfAreaHeight := float32(r.areaHeight / 2)
x = (x - halfAreaWidth) / halfAreaWidth x = (x - halfAreaWidth) / halfAreaWidth
y = -(y - (halfAreaHeight)) / halfAreaHeight y = -(y - (halfAreaHeight)) / halfAreaHeight
w := r.cellWidth / halfAreaWidth w := r.cellWidth / halfAreaWidth