delete mwindow before restarting for new theme
[goodguy/history.git] / cinelerra-5.0 / plugins / theme_blond_cv / blondcvtheme.C
index 5e8fa9b89ff817e8e1bbd94b180fc179723d8078..383d72d9eb4e962e7b539b76a21540e06a7612e0 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "bcsignals.h"
 #include "clip.h"
+#include "cstrdup.h"
 #include "cwindowgui.h"
 #include "blondcvtheme.h"
 #include "edl.h"
@@ -798,7 +799,12 @@ void BlondCVTheme::initialize()
        title_color = WHITE;
        recordgui_fixed_color = YELLOW;
        recordgui_variable_color = RED;
-       resources->medium_font = "-*-helvetica-bold-r-normal-*-14-*";
+
+       int font_size = (int)(14*resources->font_scale + 0.5);
+       char string[BCTEXTLEN];
+       sprintf(string,"-*-helvetica-bold-r-normal-*-%d-*", font_size);
+       delete [] resources->medium_font;
+       resources->medium_font = cstrdup(string);
 
        channel_position_color = MEYELLOW;
        resources->meter_title_w = 25;