X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fguicast%2Fbclistbox.C;h=b48847ba14971e5315479764a856a48573531008;hb=55e2690938cfc977f708039199f1246f0a563545;hp=ca15505b5c1d976fd76101cff74fad424a3ab76e;hpb=d7079fb6d5f3d12bc85f5413113890bc80dd22f2;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/guicast/bclistbox.C b/cinelerra-5.0/guicast/bclistbox.C index ca15505b..b48847ba 100644 --- a/cinelerra-5.0/guicast/bclistbox.C +++ b/cinelerra-5.0/guicast/bclistbox.C @@ -18,6 +18,7 @@ * */ +#include "bcdisplayinfo.h" #include "bcdragwindow.h" #include "bclistbox.h" #include "bclistboxitem.h" @@ -3914,13 +3915,11 @@ int BC_ListBox::translation_event() if(is_popup && gui) { int new_x = gui->get_x() + - (top_level->last_translate_x - - top_level->prev_x - - top_level->get_resources()->get_left_border()); + (top_level->last_translate_x - top_level->prev_x - + BC_DisplayInfo::get_left_border()); int new_y = gui->get_y() + - (top_level->last_translate_y - - top_level->prev_y - - top_level->get_resources()->get_top_border()); + (top_level->last_translate_y - top_level->prev_y - + BC_DisplayInfo::get_top_border()); gui->reposition_window(new_x, new_y);