X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcbitmap.C;h=2d8b621fd2aee04fa71406e418a9b08649506aef;hp=e430c071058df5b1789f2b9de103631ae8b1754f;hb=3d7a882d0808f456957f823454bd84ff8317a51a;hpb=c6a143f0f3e245d79881da50e61e6f35c556d88d diff --git a/cinelerra-5.1/guicast/bcbitmap.C b/cinelerra-5.1/guicast/bcbitmap.C index e430c071..2d8b621f 100644 --- a/cinelerra-5.1/guicast/bcbitmap.C +++ b/cinelerra-5.1/guicast/bcbitmap.C @@ -329,7 +329,6 @@ int BC_Bitmap::initialize(BC_WindowBase *parent_window, this->use_shm = !use_shm ? 0 : need_shm(); this->shm_reply = this->use_shm && resources->shm_reply ? 1 : 0; // dont use shm for less than one page - this->bg_color = parent_window->bg_color; if( !this->avail_lock ) this->avail_lock = new Mutex("BC_Bitmap::avail_lock"); else @@ -483,12 +482,6 @@ int BC_Bitmap::need_shm() parent_window->get_resources()->use_shm > 0 ? 1 : 0; } -int BC_Bitmap::set_bg_color(int color) -{ - this->bg_color = color; - return 0; -} - int BC_Bitmap::invert() { for( int j=0; jget_bg_color()); +} + +int BC_Bitmap::read_frame(VFrame *frame, int x1, int y1, int x2, int y2, int bg_color) { return read_frame(frame, 0, 0, frame->get_w(), frame->get_h(), - x1, y1, x2 - x1, y2 - y1); + x1, y1, x2 - x1, y2 - y1, bg_color); } int BC_Bitmap::read_frame(VFrame *frame, int in_x, int in_y, int in_w, int in_h, - int out_x, int out_y, int out_w, int out_h) + int out_x, int out_y, int out_w, int out_h, int bg_color) { BC_BitmapImage *bfr = cur_bfr(); if( hardware_scaling() && frame->get_color_model() == color_model ) {