summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/app.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 5ff8729..58a62ee 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -231,11 +231,22 @@ void App::surface_created(uint32_t surface_id) {
"fullscreen surface",
[layer_id, surface_id](struct genivi::controller *c) {
auto &s = c->surfaces[surface_id];
- s->set_destination_rectangle(0, 0, c->output_size.w,
- c->output_size.h);
+ // s->set_destination_rectangle(0, 0, c->output_size.w, c->output_size.h);
+ // s->set_source_rectangle(0, 100, c->output_size.w, c->output_size.h - 200);
+ if (layer_id != 1000) {
+ // s->set_source_rectangle(0, 0, c->output_size.w, c->output_size.h - 200);
+ s->set_configuration(c->output_size.w, c->output_size.h - 200);
+ s->set_destination_rectangle(0, 100, c->output_size.w,
+ c->output_size.h - 200);
+ } else {
+ // s->set_source_rectangle(0, 0, c->output_size.w, c->output_size.h);
+ s->set_configuration(c->output_size.w, c->output_size.h);
+ s->set_destination_rectangle(0, 0, c->output_size.w,
+ c->output_size.h);
+ }
s->set_visibility(1);
c->layers[layer_id]->add_surface(s.get());
- logdebug("Surface %u now fullscreen on layer %u", surface_id,
+ logdebug("Surface %u now on layer %u", surface_id,
layer_id);
});
}