mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-25 16:37:42 +01:00
Crash in DBG.
This commit is contained in:
parent
f8c1f08c13
commit
978e35845a
@ -370,11 +370,11 @@ const XImage& XTheme::GetIconAlt(INTN Id, INTN Alt) //if not found then take emb
|
|||||||
if (IdFound >= 0 && !Icons[IdFound].Image.isEmpty()) {
|
if (IdFound >= 0 && !Icons[IdFound].Image.isEmpty()) {
|
||||||
// icon not empty, return it
|
// icon not empty, return it
|
||||||
if (!Daylight && !Icons[IdFound].ImageNight.isEmpty()) {
|
if (!Daylight && !Icons[IdFound].ImageNight.isEmpty()) {
|
||||||
DBG("got night icon %lld name{%s}\n", Id, IconsNames[Id]);
|
DBG("got night icon %lld name{%s}\n", Id, IconsNames[IdFound]);
|
||||||
return Icons[IdFound].ImageNight;
|
return Icons[IdFound].ImageNight;
|
||||||
}
|
}
|
||||||
//if daylight or night icon absent
|
//if daylight or night icon absent
|
||||||
DBG("got day icon %lld name{%s}\n", Id, IconsNames[Id]);
|
DBG("got day icon %lld name{%s}\n", Id, IconsNames[IdFound]);
|
||||||
return Icons[IdFound].Image;
|
return Icons[IdFound].Image;
|
||||||
}
|
}
|
||||||
return NullIcon; //such Id is not found in the database
|
return NullIcon; //such Id is not found in the database
|
||||||
|
Loading…
Reference in New Issue
Block a user