1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: main.c |
2 | * File: main.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: main.C,v 1.18 2003/12/19 06:17:03 pcg Exp $ |
4 | * $Id: main.C,v 1.19 2003/12/24 09:22:29 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
8 | * - original version |
8 | * - original version |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
… | |
… | |
955 | } |
955 | } |
956 | |
956 | |
957 | if (fix_screen || old_height == 0) |
957 | if (fix_screen || old_height == 0) |
958 | { |
958 | { |
959 | int curr_screen = -1; |
959 | int curr_screen = -1; |
960 | uint16_t old_ncol = prev_ncol; |
960 | int old_ncol = prev_ncol; |
961 | |
961 | |
962 | /* scr_reset only works on the primary screen */ |
962 | /* scr_reset only works on the primary screen */ |
963 | if (old_height) /* this is not the first time through */ |
963 | if (old_height) /* this is not the first time through */ |
|
|
964 | { |
|
|
965 | unsigned int ncol = TermWin.ncol; |
|
|
966 | TermWin.ncol = prev_ncol; // save b/c scr_blank_screen_mem uses this |
964 | curr_screen = rxvt_scr_change_screen (this, PRIMARY); |
967 | curr_screen = rxvt_scr_change_screen (this, PRIMARY); |
|
|
968 | TermWin.ncol = ncol; |
|
|
969 | } |
965 | |
970 | |
966 | scr_reset(); |
971 | scr_reset(); |
967 | |
972 | |
968 | if (curr_screen >= 0) /* this is not the first time through */ |
973 | if (curr_screen >= 0) /* this is not the first time through */ |
969 | { |
974 | { |