[Sdl4fp-users] Problem using font surface
Brought to you by:
trixx
From: Matthias <ma...@gm...> - 2006-04-29 16:18:17
|
Hi there. Problem is related to TTF unit. {code} temporary_text_surface:=3DTTF_BRENDERTEXT_BLENDED(...); converted_text_surface:=3DSDL_DISPLAYFORMAT(temporary_text_surface); {end code} If I blit temporary_text_surface to display surface all works well. If I = try to blit converted_text_surface I get this: http://unterhaltung.freepage.de/tycoon/sam/sdlerr2.GIF (here you see two different tries to blit a converted text) If I use TTF_RENDERTEXT_SOLID this problem does not occur. This maybe = has something to do with the fact that the last command creates an = 8-bit-surface while TTF_RENDERTEXT_BLENDED creates a 32-bit one? How to ensure the text surface has the same format as the display = surface? Thanks alot. Greets, Matthias |