mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +01:00
ceoorect banner position in vector theme
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
5f97659dfd
commit
d0d27d8e3d
@ -209,8 +209,8 @@ EFI_STATUS XTheme::ParseSVGXIcon(INTN Id, const XString& IconNameX, XImage* Imag
|
||||
// DBG("begin rasterize %s\n", IconNameX.c_str());
|
||||
float tx = 0.f, ty = 0.f;
|
||||
if ((Id != BUILTIN_ICON_BACKGROUND) &&
|
||||
(Id != BUILTIN_ICON_ANIME) /*&&
|
||||
IconNameX.ExistIn("Banner")*/) {
|
||||
(Id != BUILTIN_ICON_ANIME) &&
|
||||
!IconNameX.ExistIn("Banner")) {
|
||||
float realWidth = (bounds[2] - bounds[0]) * Scale;
|
||||
float realHeight = (bounds[3] - bounds[1]) * Scale;
|
||||
// DBG("icon=%s width=%f realwidth=%f\n", IconNameX.c_str(), Width, realWidth);
|
||||
|
Loading…
Reference in New Issue
Block a user