Explorar el Código

minor doc/typo fixes

danaugrs hace 7 años
padre
commit
0bba2e7b57
Se han modificado 3 ficheros con 4 adiciones y 4 borrados
  1. 2 2
      gui/table.go
  2. 1 1
      gui/vboxlayout.go
  3. 1 1
      texture/texture2D.go

+ 2 - 2
gui/table.go

@@ -794,8 +794,8 @@ func (t *Table) onCursor(evname string, ev interface{}) {
 func (t *Table) onCursorPos(evname string, ev interface{}) {
 
 	// Convert mouse window coordinates to table content coordinates
-	kev := ev.(*window.CursorEvent)
-	cx, _ := t.ContentCoords(kev.Xpos, kev.Ypos)
+	cev := ev.(*window.CursorEvent)
+	cx, _ := t.ContentCoords(cev.Xpos, cev.Ypos)
 
 	// If user is dragging the resizer, updates its position
 	if t.resizing {

+ 1 - 1
gui/vboxlayout.go

@@ -18,7 +18,7 @@ package gui
 // 	AlignCenter: Try to align the group of children in the center if the panel height is
 // 	greater the the sum of the children heights + spacing.
 //
-// 	AlignHeight - Try to align the individual children vertically with the same same space between each other.
+// 	AlignHeight: Try to align the individual children vertically with the same same space between each other.
 // 	Each individual child can be aligned horizontally by SetLayoutParameters()
 //
 // If the layout method SetAutoHeight(true) is called, the panel minimum content height will be the

+ 1 - 1
texture/texture2D.go

@@ -140,7 +140,7 @@ func (t *Texture2D) SetImage(imgfile string) error {
 	return nil
 }
 
-// SetFromRGBA sets the texture data from the speficied image.RGBA object
+// SetFromRGBA sets the texture data from the specified image.RGBA object
 func (t *Texture2D) SetFromRGBA(rgba *image.RGBA) {
 
 	t.SetData(