It is not intuitive to set negative value as size.
So forbit negative value.
Change-Id: I49480653284158b6d1bfcb22a71d9882ed958518
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
"rect": {
"x": 0,
"y": 0,
"rect": {
"x": 0,
"y": 0,
"rect": {
"x": 0,
"y": 218,
"rect": {
"x": 0,
"y": 218,
"rect": {
"x": 0,
"y": 218,
"rect": {
"x": 0,
"y": 218,
"rect": {
"x": 0,
"y": 962,
"rect": {
"x": 0,
"y": 962,
"rect": {
"x": 0,
"y": 962,
"rect": {
"x": 0,
"y": 962,
"rect": {
"x": 0,
"y": 218,
"rect": {
"x": 0,
"y": 218,
"rect": {
"x": 0,
"y": 218,
"rect": {
"x": 0,
"y": 218,
"rect": {
"x": 0,
"y": 962,
"rect": {
"x": 0,
"y": 962,
"rect": {
"x": 0,
"y": 218,
"rect": {
"x": 0,
"y": 218,
void layer_map::setupArea(int output_w, int output_h)
{
compositor::rect rct;
void layer_map::setupArea(int output_w, int output_h)
{
compositor::rect rct;
- for (auto &i : this->area2size)
- {
- rct = i.second;
-
- // less-than-0 values refer to MAX + 1 - $VALUE
- // e.g. MAX is either screen width or height
- if(rct.w < 0)
- rct.w = output_w + 1 + rct.w;
- if(rct.h < 0)
- rct.h = output_h + 1 + rct.h;
-
- i.second = rct;
- }
rct = this->area2size["normal.full"];
this->area2size["normalfull"] = rct;
rct = this->area2size["normal.full"];
this->area2size["normalfull"] = rct;
\"rect\": { \
\"x\": 0, \
\"y\": 0, \
\"rect\": { \
\"x\": 0, \
\"y\": 0, \
- \"w\": -1, \
- \"h\": -1 \
+ \"w\": 1080, \
+ \"h\": 1920 \
\"rect\": { \
\"x\": 0, \
\"y\": 218, \
\"rect\": { \
\"x\": 0, \
\"y\": 218, \
- \"w\": -1, \
- \"h\": -433 \
+ \"w\": 1080, \
+ \"h\": 1488 \
\"rect\": { \
\"x\": 0, \
\"y\": 218, \
\"rect\": { \
\"x\": 0, \
\"y\": 218, \
\"rect\": { \
\"x\": 0, \
\"y\": 962, \
\"rect\": { \
\"x\": 0, \
\"y\": 962, \
\"rect\": { \
\"x\": 0, \
\"y\": 962, \
\"rect\": { \
\"x\": 0, \
\"y\": 962, \
\"rect\": { \
\"x\": 0, \
\"y\": 218, \
\"rect\": { \
\"x\": 0, \
\"y\": 218, \
- \"w\": -1, \
- \"h\": -433 \
+ \"w\": 1080, \
+ \"h\": 1488 \
\"rect\": { \
\"x\": 0, \
\"y\": 218, \
\"rect\": { \
\"x\": 0, \
\"y\": 218, \
\"rect\": { \
\"x\": 0, \
\"y\": 962, \
\"rect\": { \
\"x\": 0, \
\"y\": 962, \
\"rect\": { \
\"x\": 0, \
\"y\": 218, \
\"rect\": { \
\"x\": 0, \
\"y\": 218, \
- \"w\": -1, \
- \"h\": -433 \
+ \"w\": 1080, \
+ \"h\": 1488 \