some indent

This commit is contained in:
fluxgen 2004-01-02 13:28:00 +00:00
parent 85d572ee7e
commit e9b5ad4e40

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// $Id: ImageControl.cc,v 1.6 2003/10/09 16:48:09 rathnor Exp $
// $Id: ImageControl.cc,v 1.7 2004/01/02 13:28:00 fluxgen Exp $
#include "ImageControl.hh"
@ -152,6 +152,7 @@ ImageControl::~ImageControl() {
Pixmap ImageControl::searchCache(unsigned int width, unsigned int height,
unsigned long texture_type,
const FbTk::Color &color, const FbTk::Color &color_to) const {
Cache tmp;
tmp.width = width;
tmp.height = height;
@ -166,27 +167,8 @@ Pixmap ImageControl::searchCache(unsigned int width, unsigned int height,
return (*it)->pixmap;
}
/*
CacheList::iterator it = cache.begin();
CacheList::iterator it_end = cache.end();
for (; it != it_end; ++it) {
if (((*it)->width == width) &&
((*it)->height == height) &&
((*it)->texture == texture_type) &&
((*it)->pixel1 == color.pixel())) {
if (texture_type & FbTk::Texture::GRADIENT) {
if ((*it)->pixel2 == color_to.pixel()) {
(*it)->count++;
return (*it)->pixmap;
}
} else {
(*it)->count++;
return (*it)->pixmap;
}
}
}
return None;
*/
}