diff options
Diffstat (limited to 'lib/sprite.cc')
-rw-r--r-- | lib/sprite.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sprite.cc b/lib/sprite.cc index e62fb1b..13c09da 100644 --- a/lib/sprite.cc +++ b/lib/sprite.cc @@ -3,14 +3,14 @@ #include "base.h" #include "sprite.h" -#define TEXSIZE 256 +#define TEXSIZE 1024 mogltk::Sprite::TexList * mogltk::Sprite::TexList::header = 0; -mogltk::Sprite::Sprite(Handle * h, int asx, int asy) : sx(asx), sy(asy) { +mogltk::Sprite::Sprite(Handle * h, int asx, int asy) throw (GeneralException) : sx(asx), sy(asy) { alloc(); for (int y = 0; y < sy; y++) { - h->read(tlist->GetTex()->GetPixels() + TEXSIZE * y + posx, sx * 4); + h->read(tlist->GetTex()->GetPixels() + TEXSIZE * y + posx, sx * 4); } } |