Changeset 22490 in vbox
- Timestamp:
- Aug 26, 2009 9:03:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r22305 r22490 849 849 850 850 HRESULT rc; 851 int vrc; 851 852 Guid uuid; 852 853 char *vmName = NULL; … … 1485 1486 1486 1487 /* create SDL event semaphore */ 1487 rc = RTSemEventCreate(&g_EventSemSDLEvents);1488 AssertReleaseRC( rc);1488 vrc = RTSemEventCreate(&g_EventSemSDLEvents); 1489 AssertReleaseRC(vrc); 1489 1490 1490 1491 rc = virtualBox->OpenSession(session, uuid.toUtf16()); … … 1807 1808 } 1808 1809 /* load the SDL_ttf library and get the required imports */ 1809 int rcVBox; 1810 rcVBox = RTLdrLoad(LIBSDL_TTF_NAME, &gLibrarySDL_ttf); 1811 if (RT_SUCCESS(rcVBox)) 1812 rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_Init", (void**)&pTTF_Init); 1813 if (RT_SUCCESS(rcVBox)) 1814 rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_OpenFont", (void**)&pTTF_OpenFont); 1815 if (RT_SUCCESS(rcVBox)) 1816 rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_RenderUTF8_Solid", (void**)&pTTF_RenderUTF8_Solid); 1817 if (RT_SUCCESS(rcVBox)) 1810 vrc = RTLdrLoad(LIBSDL_TTF_NAME, &gLibrarySDL_ttf); 1811 if (RT_SUCCESS(vrc)) 1812 vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_Init", (void**)&pTTF_Init); 1813 if (RT_SUCCESS(vrc)) 1814 vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_OpenFont", (void**)&pTTF_OpenFont); 1815 if (RT_SUCCESS(vrc)) 1816 vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_RenderUTF8_Solid", (void**)&pTTF_RenderUTF8_Solid); 1817 if (RT_SUCCESS(vrc)) 1818 1818 { 1819 1819 /* silently ignore errors here */ 1820 rcVBox= RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_RenderUTF8_Blended", (void**)&pTTF_RenderUTF8_Blended);1821 if (RT_FAILURE( rcVBox))1820 vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_RenderUTF8_Blended", (void**)&pTTF_RenderUTF8_Blended); 1821 if (RT_FAILURE(vrc)) 1822 1822 pTTF_RenderUTF8_Blended = NULL; 1823 rcVBox= VINF_SUCCESS;1824 } 1825 if (RT_SUCCESS( rcVBox))1826 rcVBox= RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_CloseFont", (void**)&pTTF_CloseFont);1827 if (RT_SUCCESS( rcVBox))1828 rcVBox= RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_Quit", (void**)&pTTF_Quit);1829 if (RT_SUCCESS( rcVBox))1830 rcVBox= gpFramebuffer[0]->initSecureLabel(SECURE_LABEL_HEIGHT, secureLabelFontFile, secureLabelPointSize, secureLabelFontOffs);1831 if (RT_FAILURE( rcVBox))1832 { 1833 RTPrintf("Error: could not initialize secure labeling: rc = %Rrc\n", rcVBox);1823 vrc = VINF_SUCCESS; 1824 } 1825 if (RT_SUCCESS(vrc)) 1826 vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_CloseFont", (void**)&pTTF_CloseFont); 1827 if (RT_SUCCESS(vrc)) 1828 vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_Quit", (void**)&pTTF_Quit); 1829 if (RT_SUCCESS(vrc)) 1830 vrc = gpFramebuffer[0]->initSecureLabel(SECURE_LABEL_HEIGHT, secureLabelFontFile, secureLabelPointSize, secureLabelFontOffs); 1831 if (RT_FAILURE(vrc)) 1832 { 1833 RTPrintf("Error: could not initialize secure labeling: rc = %Rrc\n", vrc); 1834 1834 goto leave; 1835 1835 }
Note:
See TracChangeset
for help on using the changeset viewer.