summaryrefslogtreecommitdiffstats
path: root/termui
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-03-10 19:34:26 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2018-03-10 19:34:26 -0800
commit2fe347fc508c6ed9571a02f04d4dfeb0b37a92c2 (patch)
tree666e8680aa930d60f10c094e27d643a89867428c /termui
parent88548b87741069fc16b0f22e987d565dc58f2307 (diff)
Removed extra parens
Diffstat (limited to 'termui')
-rw-r--r--termui/block.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/termui/block.go b/termui/block.go
index 5d1ab8e..d6d9856 100644
--- a/termui/block.go
+++ b/termui/block.go
@@ -68,8 +68,8 @@ func (b *Block) drawLabel(buf *Buffer) {
func (b *Block) Resize(termWidth, termHeight, termCols, termRows int) {
b.X = int((float64(b.Grid.Dx())/float64(termCols))*float64(termWidth)) - 2
b.Y = int((float64(b.Grid.Dy())/float64(termRows))*float64(termHeight)) - 2
- b.XOffset = int(((float64(b.Grid.Min.X) / float64(termCols)) * float64(termWidth)))
- b.YOffset = int(((float64(b.Grid.Min.Y) / float64(termRows)) * float64(termHeight)))
+ b.XOffset = int((float64(b.Grid.Min.X) / float64(termCols)) * float64(termWidth))
+ b.YOffset = int((float64(b.Grid.Min.Y) / float64(termRows)) * float64(termHeight))
}
// SetGrid create a rectangle representing the block's dimensions in the grid.