mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-05 17:20:30 +00:00
GUI: Add GridWidget destructor
This commit is contained in:
parent
674e548d1b
commit
8f28b5f55f
@ -301,6 +301,14 @@ GridWidget::GridWidget(GuiObject *boss, const String &name)
|
||||
}
|
||||
}
|
||||
|
||||
GridWidget::~GridWidget() {
|
||||
_platformIcons.clear();
|
||||
_loadedSurfaces.clear();
|
||||
_gridItems.clear();
|
||||
_allEntries.clear();
|
||||
_visibleEntries.clear();
|
||||
}
|
||||
|
||||
const Graphics::ManagedSurface *GridWidget::filenameToSurface(const String &name) {
|
||||
String path = String("./icons/")+name;
|
||||
|
||||
|
@ -37,7 +37,7 @@ class ScrollBarWidget;
|
||||
class GridItemWidget;
|
||||
class GridWidget;
|
||||
|
||||
const Graphics::ManagedSurface *scaleGfx(Graphics::ManagedSurface *gfx, int w, int h);
|
||||
const Graphics::ManagedSurface *scaleGfx(const Graphics::ManagedSurface *gfx, int w, int h);
|
||||
|
||||
// TODO: Add more platforms
|
||||
enum Platform {
|
||||
@ -155,6 +155,7 @@ public:
|
||||
|
||||
GridWidget(GuiObject *boss, int x, int y, int w, int h);
|
||||
GridWidget(GuiObject *boss, const String &name);
|
||||
~GridWidget();
|
||||
|
||||
const Graphics::ManagedSurface *filenameToSurface(const String &name);
|
||||
const Graphics::ManagedSurface *languageToSurface(const String &lang);
|
||||
|
Loading…
Reference in New Issue
Block a user