updated with simons small changes

This commit is contained in:
Cracker64 2010-12-29 17:55:14 -05:00
parent 8df470662f
commit 081ad28435
2 changed files with 21 additions and 5 deletions

View File

@ -3386,7 +3386,7 @@ void sdl_open(void)
SDL_WM_SetCaption("The Powder Toy", "Powder Toy");
sdl_seticon();
SDL_EnableUNICODE(1);
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
//SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
}
#ifdef OpenGL

View File

@ -1853,21 +1853,37 @@ void set_cmode(int cm)
strcpy(itc_msg, "Persistent Display");
}
else if(cmode==CM_PRESS)
{
strcpy(itc_msg, "Pressure Display");
}
else if(cmode==CM_NOTHING)
{
strcpy(itc_msg, "Nothing Display");
}
else if(cmode==CM_CRACK)
{
strcpy(itc_msg, "Alternate Velocity Display");
}
else if(cmode==CM_GRAD)
{
strcpy(itc_msg, "Heat Gradient Display");
}
else if(cmode==CM_LIFE)
{
if(DEBUG_MODE)
{
strcpy(itc_msg, "Life Display");
}
else
{
set_cmode(CM_CRACK);
}
}
else
{
strcpy(itc_msg, "Velocity Display");
}
}
char *download_ui(pixel *vid_buf, char *uri, int *len)
{