From 38a65f1d57c4dc65dcce9056725ce26e0474eabc Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 21 Jan 2003 03:00:13 +0000 Subject: Fixing more things... --- lib/gltexture.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/gltexture.cc') diff --git a/lib/gltexture.cc b/lib/gltexture.cc index 49a5157..76cfe5a 100644 --- a/lib/gltexture.cc +++ b/lib/gltexture.cc @@ -1,6 +1,5 @@ #include #include -#include #include #include #include "gltexture.h" @@ -56,11 +55,16 @@ mogltk::texture::texture(Handle * h, bool plane) throw (GeneralException) : SDL_Surface * temp; +#if 0 if (!(temp = IMG_Load_RW(engine::RWFromHandle(h), 1))) throw GeneralException(_("Can't load image from Handle ") + h->GetName()); - + width = temp->w; height = temp->h; +#else + width = 256; + height = 256; +#endif if ((BITCOUNT(width) != 1) || (BITCOUNT(height) != 1)) { SDL_FreeSurface(temp); @@ -84,8 +88,10 @@ mogltk::texture::texture(Handle * h, bool plane) throw (GeneralException) : throw GeneralException(_("Can't create RGB Surface")); } +#if 0 SDL_BlitSurface(temp, 0, surface, 0); SDL_FreeSurface(temp); +#endif #ifdef TRACE_TEXTURES next = 0; -- cgit v1.2.3