diff options
author | pixel <pixel> | 2004-06-20 23:51:59 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-06-20 23:51:59 +0000 |
commit | bf452e7f6a3fa0e41964fc8e2c57e1e577cd1682 (patch) | |
tree | da2c9b920514d4f7b853cf92ee4050720261dde6 /lib/sprite.cc | |
parent | b009a6451b7560ba1e0064303deede287c381963 (diff) |
Put some modifications in the overall. Font to texture doesn't work though.
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); } } |