Skip to content

Commit

Permalink
make item kill list scroll properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Soadreqm committed Oct 6, 2024
1 parent ceafaf3 commit 93cfa09
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/scores_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ void show_kills( kill_tracker &kills )
ctxt.register_action( "PAGE_UP" );
ctxt.register_action( "PAGE_DOWN" );
ctxt.register_action( "QUIT" );
ctxt.register_action( "PREV_TAB" );
ctxt.register_action( "NEXT_TAB" );
ctxt.register_action( "HELP_KEYBINDINGS" );

catacurses::window w_view;
Expand All @@ -188,6 +186,7 @@ void show_kills( kill_tracker &kills )
w_view = catacurses::newwin( getmaxy( w ) - 4, getmaxx( w ) - 1,
point( getbegx( w ), getbegy( w ) + 3 ) );
ui.position_from_window( w );
view.set_text( kills.get_kills_text() );
};
ui.on_screen_resize( init_windows );
// initialize explicitly here since w_view is used before first redraw
Expand All @@ -197,8 +196,6 @@ void show_kills( kill_tracker &kills )
werase( w );
draw_border( w );
wnoutrefresh( w );

view.set_text( kills.get_kills_text() );
view.draw( c_white );
} );

Expand Down

0 comments on commit 93cfa09

Please sign in to comment.