From d0d27d8e3d7ddb57bd7d5811b3390f43ccd5edc6 Mon Sep 17 00:00:00 2001 From: SergeySlice Date: Sun, 19 Apr 2020 18:40:08 +0300 Subject: [PATCH] ceoorect banner position in vector theme Signed-off-by: SergeySlice --- rEFIt_UEFI/libeg/VectorGraphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rEFIt_UEFI/libeg/VectorGraphics.cpp b/rEFIt_UEFI/libeg/VectorGraphics.cpp index 7b131cc8e..e364aec64 100755 --- a/rEFIt_UEFI/libeg/VectorGraphics.cpp +++ b/rEFIt_UEFI/libeg/VectorGraphics.cpp @@ -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);