delete mwindow before restarting for new theme
[goodguy/history.git] / cinelerra-5.0 / plugins / theme_blue_dot / bluedottheme.C
index 1e87818c9172c5d56864bcf60b0eb7b56f1891c4..c54a47f667354d0b7d5d9c2ed90c55626ec2c95d 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "bcsignals.h"
 #include "clip.h"
+#include "cstrdup.h"
 #include "cwindowgui.h"
 #include "bluedottheme.h"
 #include "edl.h"
@@ -833,7 +834,12 @@ void BlueDotTheme::initialize()
        title_color = BLACK;
        recordgui_fixed_color = BLACK;
        recordgui_variable_color = RED;
-       resources->medium_font = "-*-helvetica-medium-r-normal-*-14-*";
+
+       int font_size = (int)(14*resources->font_scale + 0.5);
+       char string[BCTEXTLEN];
+       sprintf(string,"-*-helvetica-medium-r-normal-*-%d-*", font_size);
+       delete [] resources->medium_font;
+       resources->medium_font = cstrdup(string);
 
        channel_position_color = MEYELLOW;
        resources->meter_title_w = 25;