fix crash for screen width
This commit is contained in:
parent
c367d595ff
commit
139837d408
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue