Decision logic for VM color(which is used by Pair Tag on skin)
is depended on base port number. The port number is
increased by 10 from 26100.
Change-Id: I8744e837eb77773e9dedf2155abca346498ae211
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
uiInfo->setResolution(QSize(
get_display_resolution_width(), get_display_resolution_height()));
uiInfo->setBasePort(get_emul_vm_base_port());
+ qDebug() << "VM base port:" << uiInfo->getBasePort();
uiInfo->setVmDataPath(QDir(
QString::fromLocal8Bit(get_vm_data_path())).canonicalPath());
QColor UiInformation::getVMColor()
{
- switch(basePort % 10) {
+ if (basePort <= 0) {
+ qWarning() << "invalid base port:" << basePort;
+ return QColor(255, 0, 0);
+ }
+
+ switch((basePort / 10) % 10) {
case 0:
break;
case 1: