diff --git a/es-core/src/components/GridTileComponent.cpp b/es-core/src/components/GridTileComponent.cpp index 2555d7e6d..4ff1e1196 100644 --- a/es-core/src/components/GridTileComponent.cpp +++ b/es-core/src/components/GridTileComponent.cpp @@ -3,7 +3,7 @@ // EmulationStation Desktop Edition // GridTileComponent.cpp // -// X*Y grid. +// X*Y tile grid, used indirectly by GridGameListView via ImageGridComponent. // #include "GridTileComponent.h" @@ -12,13 +12,14 @@ #include "resources/TextureResource.h" #include "ThemeData.h" -GridTileComponent::GridTileComponent(Window* window) : GuiComponent(window), mBackground(window) +GridTileComponent::GridTileComponent(Window* window) : + GuiComponent(window), mBackground(window, ":/graphics/frame.png") { mDefaultProperties.mSize = getDefaultTileSize(); mDefaultProperties.mPadding = Vector2f(16.0f, 16.0f); mDefaultProperties.mImageColor = 0xAAAAAABB; mDefaultProperties.mBackgroundImage = ":/graphics/frame.png"; - mDefaultProperties.mBackgroundCornerSize = Vector2f(16 ,16); + mDefaultProperties.mBackgroundCornerSize = Vector2f(16.0f, 16.0f); mDefaultProperties.mBackgroundCenterColor = 0xAAAAEEFF; mDefaultProperties.mBackgroundEdgeColor = 0xAAAAEEFF; diff --git a/es-core/src/components/GridTileComponent.h b/es-core/src/components/GridTileComponent.h index f638dab78..2936645d5 100644 --- a/es-core/src/components/GridTileComponent.h +++ b/es-core/src/components/GridTileComponent.h @@ -3,7 +3,7 @@ // EmulationStation Desktop Edition // GridTileComponent.h // -// X*Y grid. +// X*Y tile grid, used indirectly by GridGameListView via ImageGridComponent. // #ifndef ES_CORE_COMPONENTS_GRID_TILE_COMPONENT_H diff --git a/es-core/src/components/ImageGridComponent.h b/es-core/src/components/ImageGridComponent.h index d75555501..332a2bff8 100644 --- a/es-core/src/components/ImageGridComponent.h +++ b/es-core/src/components/ImageGridComponent.h @@ -101,7 +101,7 @@ private: Vector2f mTileSize; Vector2i mGridDimension; std::shared_ptr mTheme; - std::vector< std::shared_ptr > mTiles; + std::vector> mTiles; int mStartPosition;