desktop: changed PNGButton to use final versions of buttons
commit14b6b0e773bd5d172aaa8a04d87c09a177d9c724
authorChris Frey <cdfrey@foursquare.net>
Fri, 20 Jul 2012 04:31:36 +0000 (20 00:31 -0400)
committerChris Frey <cdfrey@foursquare.net>
Fri, 20 Jul 2012 04:35:04 +0000 (20 00:35 -0400)
treee81f5fae323fbba951b845445d492e5be79a64cb
parent32023f884cda24077d136389bed86ba184b7f0ff
desktop: changed PNGButton to use final versions of buttons

Instead of drawing the background, then the button over top of it each time,
during Init(), create the final image, and then during draw, just
draw that image exactly, without transparency.

This also fixes the transparency issues of DrawButtonLabel(), which is
now renamed to DrawButtonLabelDC().

A PNGButton::Erase() member was added, in case button movement is required
in the future.
desktop/src/PNGButton.cc
desktop/src/PNGButton.h
desktop/src/util.cc
desktop/src/util.h