use dimensions method rather than function

This commit is contained in:
Jesse Duffield 2018-08-12 11:49:26 +10:00
parent b46a743016
commit 8cecad864f

View File

@ -122,7 +122,7 @@ func newView(name string, x0, y0, x1, y1 int, mode OutputMode) *View {
}
// Dimensions returns the dimensions of the View
func Dimensions(v *View) (int, int, int, int) {
func (v *View) Dimensions() (int, int, int, int) {
return v.x0, v.y0, v.x1, v.y1
}