X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbctoggle.C;h=fdc963b6c69997e6d5223b31195a61adb24cf541;hb=refs%2Fheads%2Fmaster;hp=67af31ec4888534dd4b2c6332389b212e377938a;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/bctoggle.C b/cinelerra-5.1/guicast/bctoggle.C index 67af31ec..fdc963b6 100644 --- a/cinelerra-5.1/guicast/bctoggle.C +++ b/cinelerra-5.1/guicast/bctoggle.C @@ -90,14 +90,14 @@ void BC_Toggle::calculate_extents(BC_WindowBase *gui, *h = frame->get_h(); *toggle_x = 0; *toggle_y = 0; - *text_x = *w + 5; + *text_x = *w + xS(5); *text_y = 0; *text_w = 0; *text_h = 0; if( caption ) { *text_w = gui->get_text_width(font, caption); - *text_h = gui->get_text_height(font); + *text_h = gui->get_text_height(font, caption); if( resources->toggle_highlight_bg ) { *text_w += resources->toggle_text_margin * 2;