Avoid unnecessary switchpanel icon redraws.
commit420fcb2819ff5bc2e8eb9e80ac3467bd418e5e04
authorIain Patterson <wm@iain.cx>
Fri, 31 May 2013 09:53:11 +0000 (31 10:53 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 7 Jun 2013 17:43:21 +0000 (7 18:43 +0100)
tree0732eebb4cedd2b865fdb2ef9c76a5daff0ac7ac
parented115929f3da52f494f3ff98a16a56f7dc5a3dd0
Avoid unnecessary switchpanel icon redraws.

Keep an array of flags to remember if icons are supposed to be selected
and/or dimmed, and don't redraw any which are already in the correct
state.

Originally I didn't think the benefit of doing this was worth the effort
but future commits will call changeImage() more often so cutting down on
unnecessary redraws suddenly became more useful.
src/switchpanel.c