X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcfilebox.C;fp=cinelerra-5.1%2Fguicast%2Fbcfilebox.C;h=44671608f7302953b6d29fccad9a503d9aca60b6;hb=ccd23c15fae578be22d48b1a1e8b09cb43d593ae;hp=22afff8eda58fb5f295b0a92cb983799d28fa9b4;hpb=d371c5ba45b7c98941a6775603eeb5c50014c438;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcfilebox.C b/cinelerra-5.1/guicast/bcfilebox.C index 22afff8e..44671608 100644 --- a/cinelerra-5.1/guicast/bcfilebox.C +++ b/cinelerra-5.1/guicast/bcfilebox.C @@ -254,7 +254,8 @@ int BC_FileBoxFilterMenu::handle_event() BC_FileBoxSizeFormat::BC_FileBoxSizeFormat(int x, int y, BC_FileBox *file_box) - : BC_Button(x, y, BC_WindowBase::get_resources()->filebox_szfmt_images) + : BC_Button(x, y, &BC_WindowBase::get_resources()-> + filebox_szfmt_images[3*file_box->size_format]) { this->file_box = file_box; set_tooltip(_("Size numeric format")); @@ -268,6 +269,9 @@ int BC_FileBoxSizeFormat::handle_event() if( ++file_box->size_format > FILEBOX_SIZE_THOU ) file_box->size_format = FILEBOX_SIZE_RAW; BC_WindowBase::get_resources()->filebox_size_format = file_box->size_format; + set_images(&BC_WindowBase::get_resources()-> + filebox_szfmt_images[3*file_box->size_format]); + draw_face(0); file_box->refresh(0); return 1; }