diff --git a/es-app/src/guis/GuiScraperSearch.cpp b/es-app/src/guis/GuiScraperSearch.cpp index d5c8a591f..c814d3066 100644 --- a/es-app/src/guis/GuiScraperSearch.cpp +++ b/es-app/src/guis/GuiScraperSearch.cpp @@ -88,7 +88,7 @@ GuiScraperSearch::GuiScraperSearch(SearchType type, unsigned int scrapeCount) mMD_ReleaseDate->setUppercase(true); mMD_Developer = std::make_shared("", font, mdColor, ALIGN_LEFT); mMD_Publisher = std::make_shared("", font, mdColor, ALIGN_LEFT); - mMD_Genre = std::make_shared("", font, mdColor, ALIGN_LEFT, glm::vec3 {}); + mMD_Genre = std::make_shared("", font, mdColor, ALIGN_LEFT); mMD_Players = std::make_shared("", font, mdColor, ALIGN_LEFT); mMD_Filler = std::make_shared("", font, mdColor); diff --git a/es-core/src/components/DateTimeComponent.cpp b/es-core/src/components/DateTimeComponent.cpp index 9b121ea1a..08a0ae052 100644 --- a/es-core/src/components/DateTimeComponent.cpp +++ b/es-core/src/components/DateTimeComponent.cpp @@ -24,11 +24,11 @@ DateTimeComponent::DateTimeComponent() DateTimeComponent::DateTimeComponent(const std::string& text, const std::shared_ptr& font, unsigned int color, - Alignment align, + Alignment horizontalAlignment, glm::vec3 pos, glm::vec2 size, unsigned int bgcolor) - : TextComponent {text, font, color, align, pos, size, bgcolor} + : TextComponent {text, font, color, horizontalAlignment, ALIGN_CENTER, pos, size, bgcolor} , mDisplayRelative {false} { // ISO 8601 date format. diff --git a/es-core/src/components/DateTimeComponent.h b/es-core/src/components/DateTimeComponent.h index 71bebca2d..5d848b0f5 100644 --- a/es-core/src/components/DateTimeComponent.h +++ b/es-core/src/components/DateTimeComponent.h @@ -24,9 +24,9 @@ public: DateTimeComponent(const std::string& text, const std::shared_ptr& font, unsigned int color = 0x000000FF, - Alignment align = ALIGN_LEFT, - glm::vec3 pos = {}, - glm::vec2 size = {}, + Alignment horizontalAlignment = ALIGN_LEFT, + glm::vec3 pos = {0.0f, 0.0f, 0.0f}, + glm::vec2 size = {0.0f, 0.0f}, unsigned int bgcolor = 0x00000000); void render(const glm::mat4& parentTrans) override; diff --git a/es-core/src/components/TextComponent.cpp b/es-core/src/components/TextComponent.cpp index 6225bd520..3bebb6da4 100644 --- a/es-core/src/components/TextComponent.cpp +++ b/es-core/src/components/TextComponent.cpp @@ -37,10 +37,10 @@ TextComponent::TextComponent(const std::string& text, const std::shared_ptr& font, unsigned int color, Alignment horizontalAlignment, + Alignment verticalAlignment, glm::vec3 pos, glm::vec2 size, - unsigned int bgcolor, - Alignment verticalAlignment) + unsigned int bgcolor) : mFont {nullptr} , mRenderer {Renderer::getInstance()} , mColor {0x000000FF} diff --git a/es-core/src/components/TextComponent.h b/es-core/src/components/TextComponent.h index 3db57216e..235da987b 100644 --- a/es-core/src/components/TextComponent.h +++ b/es-core/src/components/TextComponent.h @@ -29,10 +29,10 @@ public: const std::shared_ptr& font, unsigned int color = 0x000000FF, Alignment horizontalAlignment = ALIGN_LEFT, + Alignment verticalAlignment = ALIGN_CENTER, glm::vec3 pos = {0.0f, 0.0f, 0.0f}, glm::vec2 size = {0.0f, 0.0f}, - unsigned int bgcolor = 0x00000000, - Alignment verticalAlignment = ALIGN_CENTER); + unsigned int bgcolor = 0x00000000); void setFont(const std::shared_ptr& font); void setUppercase(bool uppercase); diff --git a/es-core/src/components/primary/CarouselComponent.h b/es-core/src/components/primary/CarouselComponent.h index f3866b064..98ef06c6d 100644 --- a/es-core/src/components/primary/CarouselComponent.h +++ b/es-core/src/components/primary/CarouselComponent.h @@ -271,8 +271,8 @@ void CarouselComponent::addEntry(Entry& entry, const std::shared_ptr( - nameEntry, mFont, 0x000000FF, mItemHorizontalAlignment, glm::vec3 {0.0f, 0.0f, 0.0f}, - mItemSize * mItemScale, 0x00000000, mItemVerticalAlignment); + nameEntry, mFont, 0x000000FF, mItemHorizontalAlignment, mItemVerticalAlignment, + glm::vec3 {0.0f, 0.0f, 0.0f}, mItemSize * mItemScale, 0x00000000); if (legacyMode) { text->applyTheme(theme, "system", "text_logoText", ThemeFlags::FONT_PATH | ThemeFlags::FONT_SIZE | ThemeFlags::COLOR |