+ int x_off = 0;
+ int y_off = 0;
+
+ // split along major axis
+ if (w > h) {
+ w /= 2;
+ x_off = w;
+ } else {
+ h /= 2;
+ y_off = h;
+ }
+
+ // configure surface to wxh dimensions
+ s->set_configuration(w, h);
+ // set source reactangle, even if we should not need to set it.
+ s->set_source_rectangle(0, 0, w, h);
+ // set destination to the display rectangle
+ s->set_destination_rectangle(x, y, w, h);
+
+ s->set_visibility(1);
+ s->set_opacity(256);
+
+ // configure surface to wxh dimensions
+ ss->set_configuration(w, h);
+ // set source reactangle, even if we should not need to set it.
+ ss->set_source_rectangle(0, 0, w, h);
+ // set destination to the display rectangle
+ ss->set_destination_rectangle(x+x_off, y+y_off, w, h);
+
+ ss->set_visibility(1);
+ ss->set_opacity(256);
+
+ this->controller->commit_changes();
+ this->display->roundtrip();
+
+ //redraw_fix(this, s, x, y, w, h);
+ //redraw_fix(this, ss, x+x_off, y+y_off, w, h);
+