mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-27 16:55:41 +00:00
Fix for Windows build
This commit is contained in:
parent
d85f3b8a42
commit
0928498ef2
|
@ -204,10 +204,8 @@ void ImageGridComponent<T>::render(const Transform4x4f& parentTrans)
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void ImageGridComponent<T>::applyTheme(const std::shared_ptr<ThemeData>& theme, const std::string& view, const std::string& element, unsigned int properties)
|
void ImageGridComponent<T>::applyTheme(const std::shared_ptr<ThemeData>& theme, const std::string& view, const std::string& element, unsigned int properties)
|
||||||
{
|
{
|
||||||
using namespace ThemeFlags;
|
|
||||||
|
|
||||||
// Apply theme to GuiComponent but not size property, which will be applied at the end of this function
|
// Apply theme to GuiComponent but not size property, which will be applied at the end of this function
|
||||||
GuiComponent::applyTheme(theme, view, element, properties ^ SIZE);
|
GuiComponent::applyTheme(theme, view, element, properties ^ ThemeFlags::SIZE);
|
||||||
|
|
||||||
// Keep the theme pointer to apply it on the tiles later on
|
// Keep the theme pointer to apply it on the tiles later on
|
||||||
mTheme = theme;
|
mTheme = theme;
|
||||||
|
@ -277,7 +275,7 @@ void ImageGridComponent<T>::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
||||||
GridTileComponent::getDefaultTileSize();
|
GridTileComponent::getDefaultTileSize();
|
||||||
|
|
||||||
// Apply size property, will trigger a call to onSizeChanged() which will build the tiles
|
// Apply size property, will trigger a call to onSizeChanged() which will build the tiles
|
||||||
GuiComponent::applyTheme(theme, view, element, SIZE);
|
GuiComponent::applyTheme(theme, view, element, ThemeFlags::SIZE);
|
||||||
|
|
||||||
// Trigger the call manually if the theme have no "imagegrid" element
|
// Trigger the call manually if the theme have no "imagegrid" element
|
||||||
if (!elem)
|
if (!elem)
|
||||||
|
|
Loading…
Reference in a new issue