mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 17:58:53 +01:00
Added layer check when drawing components.
Increased maximum number of layers to 20.
This commit is contained in:
parent
9150ec2079
commit
4e2cc30cc0
@ -703,7 +703,7 @@ void Page::draw()
|
||||
{
|
||||
for(std::vector<Component *>::iterator it = LayerComponents[i].begin(); it != LayerComponents[i].end(); ++it)
|
||||
{
|
||||
if(*it) (*it)->draw();
|
||||
if(*it && (*it)->baseViewInfo.Layer == i) (*it)->draw();
|
||||
}
|
||||
|
||||
for(MenuVector_T::iterator it = menus_.begin(); it != menus_.end(); it++)
|
||||
|
||||
@ -111,7 +111,7 @@ private:
|
||||
CollectionVector_T collections_;
|
||||
CollectionVector_T deleteCollections_;
|
||||
|
||||
static const unsigned int NUM_LAYERS = 8;
|
||||
static const unsigned int NUM_LAYERS = 20;
|
||||
std::vector<Component *> LayerComponents[NUM_LAYERS];
|
||||
std::list<ScrollingList *> deleteMenuList_;
|
||||
std::list<CollectionInfo *> deleteCollectionList_;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user