+ if( canvas_y1 > 0 ) {
+ window->draw_box(0, 0, window_w, canvas_y1);
+ window->flash(0, 0, window_w, canvas_y1);
+ }
+
+ if( canvas_y2 < window_h ) {
+ window->draw_box(0, canvas_y2, window_w, window_h-canvas_y2);
+ window->flash(0, canvas_y2, window_w, window_h-canvas_y2);
+ }
+
+ if( canvas_x1 > 0 ) {
+ window->draw_box(0, canvas_y1, canvas_x1, canvas_y2-canvas_y1);
+ window->flash(0, canvas_y1, canvas_x1, canvas_y2-canvas_y1);
+ }
+
+ if( canvas_x2 < window_w ) {
+ window->draw_box(canvas_x2, canvas_y1,
+ window_w-canvas_x2, canvas_y2-canvas_y1);
+ window->flash(canvas_x2, canvas_y1,
+ window_w-canvas_x2, canvas_y2-canvas_y1);
+ }
+}
+
+int Canvas::get_clear_color()
+{
+ BC_WindowBase *cwdw = get_canvas();
+ if( !cwdw ) return 0;
+ return cwdw->get_bg_color();
+}