mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 09:44:24 +03:00
Redraw window on scale request.
This commit is contained in:
parent
e4c8eeb4b0
commit
480f33e18a
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user