mirror of
https://github.com/xgi/castero
synced 2024-11-10 15:28:45 +01:00
fix window width not being rounded to int
This commit is contained in:
parent
79a6a6bb52
commit
37a3cd076b
@ -44,7 +44,7 @@ class SimplePerspective(Perspective):
|
||||
parent_x = self._display.parent_x
|
||||
parent_y = self._display.parent_y
|
||||
|
||||
fw_width = min(25, parent_x / 2)
|
||||
fw_width = min(25, parent_x // 2)
|
||||
|
||||
self._feed_window = curses.newwin(parent_y - 2, fw_width,
|
||||
2, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user