Redraw window on scale request.

This commit is contained in:
Ole Loots 2013-12-04 01:38:36 +01:00
parent e4c8eeb4b0
commit 480f33e18a

View File

@ -383,7 +383,8 @@ static void __CDECL menu_inc_scale(short item, short title, void *data)
return;
float now = plot_get_scale();
plot_set_scale(now+0.25);
LOG(("%s, scale: %f", __FUNCTION__, plot_get_scale()));
LOG(("%s, scale: %f", __FUNCTION__, plot_get_scale()));
gui_window_redraw_window(input_window);
}
@ -395,7 +396,8 @@ static void __CDECL menu_dec_scale(short item, short title, void *data)
if (now > 0.5) {
plot_set_scale(now-0.25);
}
LOG(("%s, scale: %f", __FUNCTION__, plot_get_scale()));
LOG(("%s, scale: %f", __FUNCTION__, plot_get_scale()));
gui_window_redraw_window(input_window);
}