reorganized TextObject code to easier bitmap recreation

This commit is contained in:
Pawel Kolodziejski 2005-03-20 13:51:40 +00:00
parent 54185ac340
commit 51b5e54e34
8 changed files with 125 additions and 100 deletions

View file

@ -441,3 +441,8 @@ void DriverTinyGL::drawTextBitmap(int x, int y, TextObjectHandle *handle) {
SDL_SetColorKey((SDL_Surface *)handle->surface, SDL_SRCCOLORKEY, 0xf81f);
SDL_BlitSurface((SDL_Surface *)handle->surface, &srcRect, _screen, &dstRect);
}
void DriverTinyGL::destroyTextBitmap(TextObjectHandle *handle) {
delete handle->bitmapData;
SDL_FreeSurface((SDL_Surface *)handle->surface);
}