diff options
author | Ixtli <cg@325i.org> | 2010-03-12 05:18:03 +0900 |
---|---|---|
committer | Enne Walker <ennewalker@users.sourceforge.net> | 2010-04-24 10:19:44 -0400 |
commit | 2d947390ab4dc74aaa2db2ff53ae263ec4299420 (patch) | |
tree | c7155369ca551f1ecfd09bd93cab0eda04b77254 /crawl-ref/source/tiletex.cc | |
parent | 015b8c3f39294f64d642c137602d58ce7bb32a07 (diff) | |
download | crawl-ref-2d947390ab4dc74aaa2db2ff53ae263ec4299420.tar.gz crawl-ref-2d947390ab4dc74aaa2db2ff53ae263ec4299420.zip |
Modified uiwrapper to be an abstract base class.
SDL calls are now done from a specific subclass called SDLWrapper
and the global UIWrapper variable is now a pointer.
Diffstat (limited to 'crawl-ref/source/tiletex.cc')
-rw-r--r-- | crawl-ref/source/tiletex.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tiletex.cc b/crawl-ref/source/tiletex.cc index 7e81f8230a..41f053b96f 100644 --- a/crawl-ref/source/tiletex.cc +++ b/crawl-ref/source/tiletex.cc @@ -125,7 +125,7 @@ bool GenericTexture::load_texture(const char *filename, unsigned char *p = ((unsigned char*)img->pixels() + y * img->pitch() + x * bpp); unsigned int pixel; - if (wrapper.byte_order() == UI_BIG_ENDIAN) + if (wrapper->byte_order() == UI_BIG_ENDIAN) pixel = p[0] << 16 | p[1] << 8 | p[2]; else pixel = p[0] | p[1] << 8 | p[2]; |