diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-06-18 20:31:14 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-06-18 20:31:14 +0900 |
commit | cf5e35ba81dc65f73ee6d61f2bc9ee048c782883 (patch) | |
tree | 12bb80dbbb70df3fa0adc1e6cd8c552bfdc50918 /src | |
parent | fb8bc594d8aafe8658502f15c137f85f592ac512 (diff) |
Change size of area
+1 because if the size described in layers.json is negative number,
subscribe it from ouput_size
Change-Id: I0753910b12ab18836cf97d290904e285862a5a6c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src')
-rw-r--r-- | src/layers.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/layers.cpp b/src/layers.cpp index 0431fee..f5f7a89 100644 --- a/src/layers.cpp +++ b/src/layers.cpp @@ -208,6 +208,7 @@ void layer_map::setupArea(int output_w, int output_h) if(rct.h < 0) rct.h = output_h + 1 + rct.h; this->area2size[area] = rct; + this->area2size["normalfull"] = rct; // setup split.main area = "split.main"; @@ -224,9 +225,9 @@ void layer_map::setupArea(int output_w, int output_h) role = "HomeScreen"; rct = compositor::full_rect; if (rct.w <= 0) - rct.w = output_w + rct.w; + rct.w = output_w + rct.w + 1; if (rct.h <= 0) - rct.h = output_h + rct.h; + rct.h = output_h + rct.h + 1; this->area2size[area] = rct; // setup onscreen |