From 85f717c7c70134bceebff9be9255b2071a101f86 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Thu, 24 Mar 2011 04:20:46 +0000 Subject: [PATCH] only paint GameListItems if any exist git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7407 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/GameListCtrl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/DolphinWX/Src/GameListCtrl.cpp b/Source/Core/DolphinWX/Src/GameListCtrl.cpp index 5ad6eab314..e88fe456b2 100644 --- a/Source/Core/DolphinWX/Src/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/Src/GameListCtrl.cpp @@ -360,6 +360,8 @@ void CGameListCtrl::OnPaintDrawImages(wxPaintEvent& event) wxControl::OnPaint(event); // Draw the flags, platform icons and emustate icons on top if there's games to show + if (m_ISOFiles.empty()) + return; // Retrieve the topmost shown item and get drawing offsets const long