mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Windowing system fixes, doesn't crash anymore after window resizes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@577 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
fc890ebd82
commit
a900cb580f
5 changed files with 14 additions and 18 deletions
|
|
@ -88,14 +88,14 @@ static void window_prev_page(void)
|
|||
{
|
||||
GUI_WINDOW_REC *gui = WINDOW_GUI(active_win);
|
||||
|
||||
gui_window_scroll(active_win, -(gui->parent->last_line-gui->parent->first_line)/2);
|
||||
gui_window_scroll(active_win, -gui->parent->lines/2);
|
||||
}
|
||||
|
||||
static void window_next_page(void)
|
||||
{
|
||||
GUI_WINDOW_REC *gui = WINDOW_GUI(active_win);
|
||||
|
||||
gui_window_scroll(active_win, (gui->parent->last_line-gui->parent->first_line)/2);
|
||||
gui_window_scroll(active_win, gui->parent->lines/2);
|
||||
}
|
||||
|
||||
static const char *get_key_name(int key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue