mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-12 09:54:36 +01:00
Another fail-safe check
This commit is contained in:
parent
fad765eb01
commit
73f5205891
@ -511,8 +511,8 @@ void XTheme::ClearScreen() //and restore background and banner
|
|||||||
// DBG("banner position new style\n");
|
// DBG("banner position new style\n");
|
||||||
} else {
|
} else {
|
||||||
// Use rEFIt default (no placement values speicifed)
|
// Use rEFIt default (no placement values speicifed)
|
||||||
BannerPlace.XPos = (UGAWidth - Banner.GetWidth()) >> 1;
|
BannerPlace.XPos = (UGAWidth >= Banner.GetWidth() ) ? (UGAWidth - Banner.GetWidth() ) >> 1 : 0;
|
||||||
BannerPlace.YPos = (BanHeight >= Banner.GetHeight()) ? (BanHeight - Banner.GetHeight()) : 0;
|
BannerPlace.YPos = (BanHeight >= Banner.GetHeight()) ? (BanHeight - Banner.GetHeight()) : 0;
|
||||||
// DBG("banner position old style\n");
|
// DBG("banner position old style\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user