projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix month in snap filename timestamp
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
cpanel.C
diff --git
a/cinelerra-5.1/cinelerra/cpanel.C
b/cinelerra-5.1/cinelerra/cpanel.C
index 8788b047ab3361f84fba3ef4ba93c9f1378eb299..1e6ef8d3e5348a86a3b599c88f42c90f911c76c5 100644
(file)
--- a/
cinelerra-5.1/cinelerra/cpanel.C
+++ b/
cinelerra-5.1/cinelerra/cpanel.C
@@
-415,11
+415,11
@@
int CPanelZoom::handle_event()
int CPanelZoom::set_shown(int shown)
{
if( shown ) {
int CPanelZoom::set_shown(int shown)
{
if( shown ) {
- show
_window
();
+ show();
update(gui->subwindow->canvas->get_zoom());
}
else
update(gui->subwindow->canvas->get_zoom());
}
else
- hide
_window
();
+ hide();
return 1;
}
return 1;
}
@@
-437,7
+437,7
@@
void CPanelZoom::update(float zoom)
{
if( !is_hidden() ) {
if( zoom < 0.01 ) zoom = 0.01;
{
if( !is_hidden() ) {
if( zoom < 0.01 ) zoom = 0.01;
- float value = log
(zoom) / log(10.
);
+ float value = log
10f(zoom
);
BC_FSlider::update(value);
}
}
BC_FSlider::update(value);
}
}