diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-12-27 23:25:09 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-12-27 23:25:09 +0800 |
commit | b13f72857af93489f535b84d62882f681dc84a73 (patch) | |
tree | bfdfccac810a9cb76bd7a416d0a650fb0ee36555 /smelt/sdl | |
parent | 0900cc583cc5e51b7c6b378de93cca29e11cb0e9 (diff) | |
download | SMELT-b13f72857af93489f535b84d62882f681dc84a73.tar.xz |
Fix stupid crashes.
Diffstat (limited to 'smelt/sdl')
-rw-r--r-- | smelt/sdl/sys_sdl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/smelt/sdl/sys_sdl.cpp b/smelt/sdl/sys_sdl.cpp index 2c0ae93..beb07a0 100644 --- a/smelt/sdl/sys_sdl.cpp +++ b/smelt/sdl/sys_sdl.cpp @@ -62,7 +62,7 @@ bool SMELT_IMPL::smInit() else if(i==0x80000004) memcpy(cpuName+32, CPUInfo, sizeof(CPUInfo)); } - while(*cpuName=' ')++cpuName; + while(*cpuName==' ')++cpuName; smLog("%s:" SLINE ": CPU: %s\n", SYS_SDL_SRCFN,cpuName); free(loced); @@ -132,7 +132,6 @@ bool SMELT_IMPL::smInit() if(!pSM->Active)pSM->focusChange(true); } SDL_ShowCursor(hideMouse?SDL_DISABLE:SDL_ENABLE); - SDL_EnableScreenSaver(); initInput(); if(!initOGL()){smFinale();return false;} if(!initOAL()){smFinale();return false;} |