From 5565403eaaf77215e85a4b3a1e338aa15c3fbb7f Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 20 Sep 2008 18:19:59 +0000 Subject: [PATCH] disabling broken process priority stuff git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2716 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/src/main.cpp b/source/src/main.cpp index 8e50d751..ac0c11ba 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -127,6 +127,7 @@ void writeinitcfg() fclose(f); } +#if 0 VARP(highprocesspriority, 0, 1, 1); void setprocesspriority(bool high) @@ -135,7 +136,7 @@ void setprocesspriority(bool high) SetPriorityClass(GetCurrentProcess(), high && highprocesspriority && fullscreen ? HIGH_PRIORITY_CLASS : NORMAL_PRIORITY_CLASS); #endif } - +#endif void screenshot(char *imagepath) { @@ -421,7 +422,9 @@ void checkinput() grabmouse = event.active.gain; else if(event.active.gain) grabmouse = 1; +#if 0 if(event.active.state==SDL_APPMOUSEFOCUS) setprocesspriority(event.active.gain > 0); // switch priority on focus change +#endif break; case SDL_MOUSEMOTION: @@ -541,7 +544,9 @@ int main(int argc, char **argv) #endif if(SDL_Init(SDL_INIT_TIMER|SDL_INIT_VIDEO|par)<0) fatal("Unable to initialize SDL"); +#if 0 if(highprocesspriority) setprocesspriority(true); +#endif initlog("net"); if(enet_initialize()<0) fatal("Unable to initialise network module");