Skip to content

Commit

Permalink
Use requested_video_fn in evolver_menu_switch
Browse files Browse the repository at this point in the history
  • Loading branch information
LegalizeAdulthood committed Oct 7, 2024
1 parent 2a4e106 commit 2607f84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
10 changes: 1 addition & 9 deletions libid/evolver_menu_switch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,16 +511,8 @@ main_state evolver_menu_switch(int *kbdchar, bool *frommandel, bool *kbdmore, bo
// fall through

default: // other (maybe valid Fn key
k = check_vidmode_key(0, *kbdchar);
if (k >= 0)
if (requested_video_fn(*kbdmore, *kbdchar))
{
g_adapter = k;
if (g_video_table[g_adapter].colors != g_colors)
{
g_save_dac = 0;
}
g_calc_status = calc_status_value::PARAMS_CHANGED;
*kbdmore = false;
return main_state::CONTINUE;
}
break;
Expand Down
1 change: 1 addition & 0 deletions libid/include/main_menu_switch.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ main_state get_history(int kbd_char);
void color_cycle(int kbd_char);
bool color_editing(bool &kbd_more);
void restore_from_image(bool &from_mandel, int kbd_char, bool &stacked);
bool requested_video_fn(bool &kbd_more, int kbd_char);
2 changes: 1 addition & 1 deletion libid/main_menu_switch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ static void start_evolution(bool &kbd_more, int kbd_char)
g_calc_status = calc_status_value::PARAMS_CHANGED;
}

static bool requested_video_fn(bool &kbd_more, int kbd_char)
bool requested_video_fn(bool &kbd_more, int kbd_char)
{
const int k = check_vidmode_key(0, kbd_char);
if (k >= 0)
Expand Down

0 comments on commit 2607f84

Please sign in to comment.