mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-11 19:22:14 +01:00
dont commit USE_XTHEME
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
parent
5b84f64f61
commit
3ff4a9d730
@ -38,7 +38,7 @@
|
|||||||
#define __LIBEG_LIBEG_H__
|
#define __LIBEG_LIBEG_H__
|
||||||
|
|
||||||
#ifndef USE_XTHEME
|
#ifndef USE_XTHEME
|
||||||
#define USE_XTHEME 1
|
#define USE_XTHEME 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -3206,7 +3206,7 @@ INTN REFIT_MENU_SCREEN::DrawTextXY(IN const XStringW& Text, IN INTN XPos, IN INT
|
|||||||
|
|
||||||
// DBG("draw text %ls\n", Text);
|
// DBG("draw text %ls\n", Text);
|
||||||
// DBG("pos=%d width=%d xtext=%d Height=%d Y=%d\n", XPos, TextWidth, XText, Height, YPos);
|
// DBG("pos=%d width=%d xtext=%d Height=%d Y=%d\n", XPos, TextWidth, XText, Height, YPos);
|
||||||
TextBufferXY.Draw(XText, YPos);
|
TextBufferXY.Draw(XText, YPos, 0, false);
|
||||||
// TextBufferXY.DrawWithoutCompose(XText, YPos);
|
// TextBufferXY.DrawWithoutCompose(XText, YPos);
|
||||||
return TextWidth2;
|
return TextWidth2;
|
||||||
}
|
}
|
||||||
@ -4446,13 +4446,13 @@ VOID DrawMainMenuEntry(REFIT_ABSTRACT_MENU_ENTRY *Entry, BOOLEAN selected, INTN
|
|||||||
XImage& TopImage = ThemeX.SelectionImages[((Entry->Row == 0) ? 0 : 2) + (selected ? 0 : 1)];
|
XImage& TopImage = ThemeX.SelectionImages[((Entry->Row == 0) ? 0 : 2) + (selected ? 0 : 1)];
|
||||||
|
|
||||||
if(ThemeX.SelectionOnTop) {
|
if(ThemeX.SelectionOnTop) {
|
||||||
MainImage.Draw(XPos, YPos, fScale);
|
MainImage.Draw(XPos, YPos, fScale, false);
|
||||||
BadgeImage.Draw(XPos, YPos, fScale);
|
BadgeImage.Draw(XPos, YPos, fScale, false);
|
||||||
TopImage.Draw(XPos, YPos, fScale);
|
TopImage.Draw(XPos, YPos, fScale, false);
|
||||||
} else {
|
} else {
|
||||||
TopImage.Draw(XPos, YPos, fScale);
|
TopImage.Draw(XPos, YPos, fScale, false);
|
||||||
MainImage.Draw(XPos, YPos, fScale);
|
MainImage.Draw(XPos, YPos, fScale, false);
|
||||||
BadgeImage.Draw(XPos, YPos, fScale);
|
BadgeImage.Draw(XPos, YPos, fScale, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw BCS indicator
|
// draw BCS indicator
|
||||||
@ -4468,7 +4468,7 @@ VOID DrawMainMenuEntry(REFIT_ABSTRACT_MENU_ENTRY *Entry, BOOLEAN selected, INTN
|
|||||||
// &MenuBackgroundPixel, Scale);
|
// &MenuBackgroundPixel, Scale);
|
||||||
TopImage = ThemeX.SelectionImages[4 + (selected ? 0 : 1)];
|
TopImage = ThemeX.SelectionImages[4 + (selected ? 0 : 1)];
|
||||||
TopImage.Draw(XPos + (ThemeX.row0TileSize / 2) - (INTN)(INDICATOR_SIZE * 0.5f * ThemeX.Scale),
|
TopImage.Draw(XPos + (ThemeX.row0TileSize / 2) - (INTN)(INDICATOR_SIZE * 0.5f * ThemeX.Scale),
|
||||||
row0PosY + ThemeX.row0TileSize + TextHeight + (INTN)((BCSMargin * 2) * ThemeX.Scale), fScale);
|
row0PosY + ThemeX.row0TileSize + TextHeight + (INTN)((BCSMargin * 2) * ThemeX.Scale), fScale, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user