From b8783b73fc84895bca8bf02b2604c3b1178bc7d3 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 28 Jan 2014 06:46:02 +0100 Subject: [PATCH] Client: interface config reload also re-sets virtual screen offset to 0. --- src/client/misc.c | 1 + src/client/misc.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/misc.c b/src/client/misc.c index 17a12da..4af2beb 100644 --- a/src/client/misc.c +++ b/src/client/misc.c @@ -129,6 +129,7 @@ extern void reload_interface_conf() unload_interface_conf(); load_interface_conf(); map_center(); + world.winDB.v_screen_offset = 0; } diff --git a/src/client/misc.h b/src/client/misc.h index 928d8db..5a74586 100644 --- a/src/client/misc.h +++ b/src/client/misc.h @@ -19,7 +19,8 @@ extern void obey_argv(int argc, char * argv[]); * data, world.wins.pad (initialized before opening any windows to the height of * the terminal screen and a width of 1) and window chains. * - * Note that reload_interface_conf() also calls map_center(). + * Note that reload_interface_conf() also calls map_center() and re-sets + * world.winDB.v_screen_offset to zero. */ extern void save_interface_conf(); extern void load_interface_conf(); -- 2.30.2