- Timestamp:
- Apr 18, 2008 1:28:51 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxSDL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r7207 r8144 58 58 DECLSPEC TTF_Font* (SDLCALL *pTTF_OpenFont)(const char *file, int ptsize); 59 59 DECLSPEC SDL_Surface* (SDLCALL *pTTF_RenderUTF8_Solid)(TTF_Font *font, const char *text, SDL_Color fg); 60 DECLSPEC SDL_Surface* (SDLCALL *pTTF_RenderUTF8_Blended)(TTF_Font *font, const char *text, SDL_Color fg); 60 61 DECLSPEC void (SDLCALL *pTTF_CloseFont)(TTF_Font *font); 61 62 DECLSPEC void (SDLCALL *pTTF_Quit)(void); … … 1057 1058 (mSecureLabelColorFG & 0x0000FF00) >> 8, 1058 1059 mSecureLabelColorFG & 0x000000FF, 0}; 1059 SDL_Surface *sText = pTTF_RenderUTF8_Solid(mLabelFont, mSecureLabelText.raw(), clrFg); 1060 SDL_Surface *sText = (pTTF_RenderUTF8_Blended != NULL) 1061 ? pTTF_RenderUTF8_Blended(mLabelFont, mSecureLabelText.raw(), clrFg) 1062 : pTTF_RenderUTF8_Solid(mLabelFont, mSecureLabelText.raw(), clrFg); 1060 1063 rect.x = 10; 1061 1064 SDL_BlitSurface(sText, NULL, mScreen, &rect); -
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h
r5999 r8144 33 33 extern DECLSPEC TTF_Font* (SDLCALL *pTTF_OpenFont)(const char *file, int ptsize); 34 34 extern DECLSPEC SDL_Surface* (SDLCALL *pTTF_RenderUTF8_Solid)(TTF_Font *font, const char *text, SDL_Color fg); 35 extern DECLSPEC SDL_Surface* (SDLCALL *pTTF_RenderUTF8_Shaded)(TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg); 36 extern DECLSPEC SDL_Surface* (SDLCALL *pTTF_RenderUTF8_Blended)(TTF_Font *font, const char *text, SDL_Color fg); 35 37 extern DECLSPEC void (SDLCALL *pTTF_CloseFont)(TTF_Font *font); 36 38 extern DECLSPEC void (SDLCALL *pTTF_Quit)(void); -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r8049 r8144 1867 1867 if (VBOX_SUCCESS(rcVBox)) 1868 1868 rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_RenderUTF8_Solid", (void**)&pTTF_RenderUTF8_Solid); 1869 if (VBOX_SUCCESS(rcVBox)) 1870 { 1871 /* silently ignore errors here */ 1872 rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_RenderUTF8_Blended", (void**)&pTTF_RenderUTF8_Blended); 1873 if (VBOX_FAILURE(rcVBox)) 1874 pTTF_RenderUTF8_Blended = NULL; 1875 rcVBox = VINF_SUCCESS; 1876 } 1869 1877 if (VBOX_SUCCESS(rcVBox)) 1870 1878 rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_CloseFont", (void**)&pTTF_CloseFont);
Note:
See TracChangeset
for help on using the changeset viewer.