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.

This commit is contained in:
Petteri Aimonen 2016-09-22 11:52:52 -06:00 committed by Gregory Nutt
parent 5ea0785c16
commit 334122ac8d

View File

@ -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 <gnutt@nuttx.org>
*
* 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();
}
/**