Changeset 41216 in vbox for trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
- Timestamp:
- May 8, 2012 6:05:41 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r41215 r41216 75 75 // 76 76 77 HRESULT VBoxSDLFB::FinalConstruct() 78 { 79 return S_OK; 80 } 81 82 /** 83 * SDL framebuffer init method. It is called from the main 77 /** 78 * SDL framebuffer constructor. It is called from the main 84 79 * (i.e. SDL) thread. Therefore it is safe to use SDL calls 85 80 * here. 86 * @returns COM status code87 81 * @param fFullscreen flag whether we start in fullscreen mode 88 82 * @param fResizable flag whether the SDL window should be resizable … … 93 87 * @param iFixedHeight fixed SDL height (-1 means not set) 94 88 */ 95 HRESULT VBoxSDLFB::init(uint32_t uScreenId,96 97 98 89 VBoxSDLFB::VBoxSDLFB(uint32_t uScreenId, 90 bool fFullscreen, bool fResizable, bool fShowSDLConfig, 91 bool fKeepHostRes, uint32_t u32FixedWidth, 92 uint32_t u32FixedHeight, uint32_t u32FixedBPP) 99 93 { 100 94 int rc; 101 LogFlow(("VBoxSDLFB::init\n")); 95 LogFlow(("VBoxSDLFB::VBoxSDLFB\n")); 96 97 #if defined (RT_OS_WINDOWS) 98 refcnt = 0; 99 #endif 102 100 103 101 mScreenId = uScreenId; … … 140 138 Assert(mScreen); 141 139 mfInitialized = true; 142 143 return S_OK; 144 } 145 146 void VBoxSDLFB::FinalRelease() 147 { 148 uninit(); 149 } 150 151 void VBoxSDLFB::uninit() 152 { 153 LogFlow(("VBoxSDLFB::uninit\n")); 140 } 141 142 VBoxSDLFB::~VBoxSDLFB() 143 { 144 LogFlow(("VBoxSDLFB::~VBoxSDLFB\n")); 154 145 if (mSurfVRAM) 155 146 { … … 169 160 } 170 161 171 bool VBoxSDLFB::init SDL(bool fShowSDLConfig)162 bool VBoxSDLFB::init(bool fShowSDLConfig) 172 163 { 173 164 LogFlow(("VBoxSDLFB::init\n")); … … 249 240 * @remarks must be called from the SDL thread! 250 241 */ 251 void VBoxSDLFB::uninit SDL()242 void VBoxSDLFB::uninit() 252 243 { 253 244 if (gfSdlInitialized)
Note:
See TracChangeset
for help on using the changeset viewer.