From 9150ec2079752ea4e1a44a449da3dd45cc1bdacf Mon Sep 17 00:00:00 2001 From: Pieter Hulshoff Date: Wed, 11 May 2016 12:54:50 +0200 Subject: [PATCH] Only draw scrollinglist at the requested layer index. --- RetroFE/Source/Graphics/Component/ScrollingList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RetroFE/Source/Graphics/Component/ScrollingList.cpp b/RetroFE/Source/Graphics/Component/ScrollingList.cpp index dfcbdae..ced3368 100644 --- a/RetroFE/Source/Graphics/Component/ScrollingList.cpp +++ b/RetroFE/Source/Graphics/Component/ScrollingList.cpp @@ -685,7 +685,7 @@ void ScrollingList::draw(unsigned int layer) for(unsigned int i = 0; i < components_.size(); ++i) { Component *c = components_.at(i); - if(c) c->draw(); + if(c && c->baseViewInfo.Layer == layer) c->draw(); } }