From 6c0c6387b67c5046dfdf3bb98f3c3ccbb6f41962 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 21 Feb 2020 21:37:12 +0100 Subject: [PATCH] - Fix locking the game container while updating the icon data --- src/gui/GuiIconGrid.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/GuiIconGrid.cpp b/src/gui/GuiIconGrid.cpp index 2a81a24..6cadec9 100644 --- a/src/gui/GuiIconGrid.cpp +++ b/src/gui/GuiIconGrid.cpp @@ -375,11 +375,14 @@ void GuiIconGrid::OnGameTitleUpdated(gameInfo * info) { break; } } - containerMutex.unlock(); + // keep the lock to delay the draw() until the image data is ready. if(container != NULL) { container->updateImageData(); } + + containerMutex.unlock(); + bUpdatePositions = true; }