Change-Id: Id19cffe49ec5b0e6a34c4d9a5f0559e2127f6b3d
}
layout = sclres_manager->get_layout_id(sclres_input_mode_configure[mode].layouts[display_mode]);
- if (!scl_check_arrindex_unsigned(layout, MAX_SCL_LAYOUT) ||
+ if (layout < 0 || !scl_check_arrindex_unsigned(layout, MAX_SCL_LAYOUT) ||
!scl_check_arrindex_unsigned(layout, sclres_manager->get_layout_size())) {
layout = 0;
}
sclint layout = sclres_manager->get_layout_id(
sclres_input_mode_configure[inputmode].layouts[display_mode]);
- ret.width = sclres_layout[layout].width;
- ret.height = sclres_layout[layout].height;
+ if (layout >= 0) {
+ ret.width = sclres_layout[layout].width;
+ ret.height = sclres_layout[layout].height;
+ }
}
}
}
}
}
-
-
void
CSCLUIImpl::set_debug_mode(SCLDebugMode mode)
{