From 334122ac8db9418f42635967c7689459625409e9 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Thu, 22 Sep 2016 11:52:52 -0600 Subject: [PATCH] libnxwidgets: Avoid unnecessary redraw in NxWidgets::CListBox. The ListData will raise an event that will cause a redraw anyway. Redrawing in click() caused double redraws. --- libnxwidgets/src/clistbox.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libnxwidgets/src/clistbox.cxx b/libnxwidgets/src/clistbox.cxx index bf8511b5e..67a085e39 100644 --- a/libnxwidgets/src/clistbox.cxx +++ b/libnxwidgets/src/clistbox.cxx @@ -1,7 +1,7 @@ /**************************************************************************** * NxWidgets/libnxwidgets/src/clistbox.cxx * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -628,7 +628,6 @@ void CListBox::onClick(nxgl_coord_t x, nxgl_coord_t y) } startDragging(x, y); - redraw(); } /**