fix crash for screen width

This commit is contained in:
sonil 2022-10-24 18:55:09 +08:00
parent c367d595ff
commit 139837d408
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ int CustomInterfaceBarInit()
sprintf(path, "art\\intrface\\HR_IFACE_%d.FRM", gInterfaceBarWidth);
if (dbGetFileSize(path, &size) != 0 || ifaceOffset <= 0) {
if (dbGetFileSize(path, &size) != 0 || ifaceOffset <= 0 || screenGetWidth() <= 640) {
ifaceOffset = 0;
gInterfaceBarWidth = 640;
gInterfaceCustomBar = false;