reorganized TextObject code to easier bitmap recreation
This commit is contained in:
parent
54185ac340
commit
51b5e54e34
8 changed files with 125 additions and 100 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue