From bf452e7f6a3fa0e41964fc8e2c57e1e577cd1682 Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 20 Jun 2004 23:51:59 +0000 Subject: Put some modifications in the overall. Font to texture doesn't work though. --- lib/sprite.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/sprite.cc') 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); } } -- cgit v1.2.3