- Timestamp:
- Nov 30, 2010 1:35:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r31698 r34513 6 6 7 7 /* 8 * Copyright (C) 2006-20 07Oracle Corporation8 * Copyright (C) 2006-2010 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 67 67 #endif /* VBOX_SECURELABEL */ 68 68 69 static SDL_Surface *gWMIcon; /**< the application icon */ 70 static RTNATIVETHREAD gSdlNativeThread; /**< the SDL thread */ 69 static bool gfSdlInitialized = false; /**< if SDL was initialized */ 70 static SDL_Surface *gWMIcon = NULL; /**< the application icon */ 71 static RTNATIVETHREAD gSdlNativeThread = NIL_RTNATIVETHREAD; /**< the SDL thread */ 71 72 72 73 // … … 185 186 return false; 186 187 } 188 gfSdlInitialized = true; 187 189 188 190 const SDL_VideoInfo *videoInfo = SDL_GetVideoInfo(); … … 240 242 void VBoxSDLFB::uninit() 241 243 { 242 AssertMsg(gSdlNativeThread == RTThreadNativeSelf(), ("Wrong thread! SDL is not threadsafe!\n")); 243 SDL_QuitSubSystem(SDL_INIT_VIDEO); 244 if (gWMIcon) 245 { 246 SDL_FreeSurface(gWMIcon); 247 gWMIcon = NULL; 244 if (gfSdlInitialized) 245 { 246 AssertMsg(gSdlNativeThread == RTThreadNativeSelf(), ("Wrong thread! SDL is not threadsafe!\n")); 247 SDL_QuitSubSystem(SDL_INIT_VIDEO); 248 if (gWMIcon) 249 { 250 SDL_FreeSurface(gWMIcon); 251 gWMIcon = NULL; 252 } 248 253 } 249 254 }
Note:
See TracChangeset
for help on using the changeset viewer.