summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2010-12-29 22:55:14 (GMT)
committer Cracker64 <cracker642@gmail.com>2010-12-29 22:55:14 (GMT)
commit081ad28435d9fb544d32f9ed20aca08223d09ba3 (patch)
treefe12dcf1238bc283de9c4d1a89ee94caa12bc821 /src
parent8df470662fc687cedeac97fac2c4d8afe4ccedd0 (diff)
downloadpowder-081ad28435d9fb544d32f9ed20aca08223d09ba3.zip
powder-081ad28435d9fb544d32f9ed20aca08223d09ba3.tar.gz
updated with simons small changes
Diffstat (limited to 'src')
-rw-r--r--src/graphics.c2
-rw-r--r--src/interface.c24
2 files changed, 21 insertions, 5 deletions
diff --git a/src/graphics.c b/src/graphics.c
index adc0c18..9fcc716 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -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
diff --git a/src/interface.c b/src/interface.c
index fef6445..b37c3e9 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -1853,20 +1853,36 @@ 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);
+ {
+ 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)