ffmpeg filter memory leak, cursor hopper fix, added leaker.C, misc fixes
[goodguy/history.git] / cinelerra-5.1 / cinelerra / interfaceprefs.C
index d463fb24471ae67c8bd601275f5baf408d0a4b6d..90c67b1a5acb5fdc80d25b815ac353bec936e684 100644 (file)
@@ -80,8 +80,9 @@ void InterfacePrefs::create_objects()
        x = x2;
        BC_Title *title;
        add_subwindow(title = new BC_Title(x, y, _("Keyframe reticle:")));
-       y += 25;
-       keyframe_reticle = new KeyframeReticle(x, y, &pwindow->thread->preferences->keyframe_reticle);
+       y += title->get_h() + 5;
+       keyframe_reticle = new KeyframeReticle(pwindow, this, x, y,
+               &pwindow->thread->preferences->keyframe_reticle);
        add_subwindow(keyframe_reticle);
        keyframe_reticle->create_objects();
 
@@ -495,15 +496,19 @@ HairlineItem::~HairlineItem()
 
 int HairlineItem::handle_event()
 {
+       popup->pwindow->thread->redraw_overlays = 1;
        popup->set_text(get_text());
        *(popup->output) = hairline;
        return 1;
 }
 
 
-KeyframeReticle::KeyframeReticle(int x, int y, int *output)
- : BC_PopupMenu(x, y, 175, hairline_to_string(*output))
+KeyframeReticle::KeyframeReticle(PreferencesWindow *pwindow,
+       InterfacePrefs *iface_prefs, int x, int y, int *output)
+ : BC_PopupMenu(x, y, 220, hairline_to_string(*output))
 {
+       this->pwindow = pwindow;
+       this->iface_prefs = iface_prefs;
        this->output = output;
 }