mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Fixed some compile errors when using old GCC versions.
This commit is contained in:
parent
a28216028e
commit
7872f35d1b
|
@ -35,8 +35,6 @@ protected:
|
|||
using List::mWindow;
|
||||
|
||||
using GuiComponent::mDefaultZIndex;
|
||||
using GuiComponent::mOrigin;
|
||||
using GuiComponent::mPosition;
|
||||
using GuiComponent::mZIndex;
|
||||
|
||||
public:
|
||||
|
@ -387,9 +385,11 @@ template <typename T> void CarouselComponent<T>::render(const glm::mat4& parentT
|
|||
return;
|
||||
|
||||
glm::mat4 carouselTrans {parentTrans};
|
||||
carouselTrans = glm::translate(carouselTrans, glm::vec3 {mPosition.x, mPosition.y, 0.0f});
|
||||
carouselTrans = glm::translate(
|
||||
carouselTrans, glm::vec3 {mOrigin.x * mSize.x * -1.0f, mOrigin.y * mSize.y * -1.0f, 0.0f});
|
||||
carouselTrans, glm::vec3 {GuiComponent::mPosition.x, GuiComponent::mPosition.y, 0.0f});
|
||||
carouselTrans =
|
||||
glm::translate(carouselTrans, glm::vec3 {GuiComponent::mOrigin.x * mSize.x * -1.0f,
|
||||
GuiComponent::mOrigin.y * mSize.y * -1.0f, 0.0f});
|
||||
|
||||
mRenderer->pushClipRect(
|
||||
glm::ivec2 {static_cast<int>(glm::clamp(std::round(carouselTrans[3].x), 0.0f,
|
||||
|
@ -562,8 +562,8 @@ void CarouselComponent<T>::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|||
|
||||
mSize.x = Renderer::getScreenWidth();
|
||||
mSize.y = Renderer::getScreenHeight() * 0.2325f;
|
||||
mPosition.x = 0.0f;
|
||||
mPosition.y = floorf(0.5f * (Renderer::getScreenHeight() - mSize.y));
|
||||
GuiComponent::mPosition.x = 0.0f;
|
||||
GuiComponent::mPosition.y = floorf(0.5f * (Renderer::getScreenHeight() - mSize.y));
|
||||
mCarouselColor = 0xFFFFFFD8;
|
||||
mCarouselColorEnd = 0xFFFFFFD8;
|
||||
mZIndex = mDefaultZIndex;
|
||||
|
|
Loading…
Reference in a new issue