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:
parent
5ea0785c16
commit
334122ac8d
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user