+ int out_w = output_frame->get_w();
+ int out_h = output_frame->get_h();
+ if( refresh_frame &&
+ (refresh_frame->get_w() != out_w ||
+ refresh_frame->get_h() != out_h ||
+ refresh_frame->get_color_model() != best_color_model ) ) {
+// x11 direct render uses BC_BGR8888, use tranfer_from to remap
+ delete refresh_frame; refresh_frame = 0;
+ }