return false;
}
}
-
- // check base size
- int unitWidth = w / UNIT_SIZE_BASE;
- int recalc = UNIT_SIZE_BASE * unitWidth + 4*(unitWidth - 1);
- if (recalc != w)
+ else
{
- SysLog(NID_SHELL, "%dx%d size is invalid.", w, h);
- return false;
+ static const int UNIT_SIZE_3 = 533;
+
+ // check 4x3 size
+ if (h == UNIT_SIZE_3)
+ {
+ SysLog(NID_SHELL, "%dx%d size is invalid.", w, h);
+ return false;
+ }
+
+ // check easy mode size
+ int unitWidth = w / UNIT_SIZE_BASE;
+ int recalc = UNIT_SIZE_BASE * unitWidth + 4*(unitWidth - 1);
+ if (recalc != w)
+ {
+ SysLog(NID_SHELL, "%dx%d size is invalid.", w, h);
+ return false;
+ }
}
return true;