Mercurial > emacs
comparison src/xdisp.c @ 70592:e11c9bf81843
(redisplay_tool_bar): Handle large tool-bar-border values.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Thu, 11 May 2006 21:26:54 +0000 |
parents | fd520a2e66ad |
children | c91b342afed1 b6689e223e2f a5812696f7bf |
comparison
equal
deleted
inserted
replaced
70591:51662caefaba | 70592:e11c9bf81843 |
---|---|
9721 border = 0; | 9721 border = 0; |
9722 if (border < 0) | 9722 if (border < 0) |
9723 border = 0; | 9723 border = 0; |
9724 | 9724 |
9725 rows = f->n_tool_bar_rows; | 9725 rows = f->n_tool_bar_rows; |
9726 height = (it.last_visible_y - border) / rows; | 9726 height = max (1, (it.last_visible_y - border) / rows); |
9727 extra = it.last_visible_y - border - height * rows; | 9727 extra = it.last_visible_y - border - height * rows; |
9728 | 9728 |
9729 while (it.current_y < it.last_visible_y) | 9729 while (it.current_y < it.last_visible_y) |
9730 { | 9730 { |
9731 int h = 0; | 9731 int h = 0; |