Changeset 23170 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 21, 2009 9:25:13 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxSDL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r22911 r23170 163 163 } 164 164 165 voidVBoxSDLFB::init(bool fShowSDLConfig)165 bool VBoxSDLFB::init(bool fShowSDLConfig) 166 166 { 167 167 LogFlow(("VBoxSDLFB::init\n")); … … 187 187 { 188 188 RTPrintf("SDL Error: '%s'\n", SDL_GetError()); 189 return ;189 return false; 190 190 } 191 191 … … 233 233 } 234 234 } 235 236 return true; 235 237 } 236 238 -
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h
r21520 r23170 56 56 virtual ~VBoxSDLFB(); 57 57 58 static voidinit(bool fShowSDLConfig);58 static bool init(bool fShowSDLConfig); 59 59 static void uninit(); 60 60 -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r22911 r23170 1758 1758 1759 1759 /* static initialization of the SDL stuff */ 1760 VBoxSDLFB::init(fShowSDLConfig); 1760 if (!VBoxSDLFB::init(fShowSDLConfig)) 1761 goto leave; 1761 1762 1762 1763 gMachine->COMGETTER(MonitorCount)(&gcMonitors); … … 2730 2731 { 2731 2732 # ifdef VBOXSDL_WITH_X11 2732 Cursor pDefaultTempX11Cursor = *(Cursor*)gpDefaultCursor->wm_cursor; 2733 *(Cursor*)gpDefaultCursor->wm_cursor = gpDefaultOrigX11Cursor; 2733 Cursor pDefaultTempX11Cursor = NULL; 2734 if (gfXCursorEnabled) 2735 { 2736 pDefaultTempX11Cursor = *(Cursor*)gpDefaultCursor->wm_cursor; 2737 *(Cursor*)gpDefaultCursor->wm_cursor = gpDefaultOrigX11Cursor; 2738 } 2734 2739 # endif /* VBOXSDL_WITH_X11 */ 2735 2740 SDL_SetCursor(gpDefaultCursor);
Note:
See TracChangeset
for help on using the changeset viewer.