Skip to content

Commit ed3957c

Browse files
committed
set max width
Signed-off-by: Jens Nyberg <[email protected]>
1 parent 0cb35c8 commit ed3957c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/view.c

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ void view_init(struct view *view, int w, int h, unsigned int size)
2424
if (view->unitw < 32)
2525
view->unitw = 32;
2626

27+
if (view->unitw > 56)
28+
view->unitw = 56;
29+
2730
view->unith = 40;
2831
view->marginw = 16;
2932
view->marginh = 16;

0 commit comments

Comments
 (0)