aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2011-09-06 16:25:00 +0000
committerDimitri Sokolyuk <demon@dim13.org>2011-09-06 16:25:00 +0000
commite01af79ba4af06f069f884a918b416b04cbf6ef6 (patch)
tree84c3752069585826a868d5b4a052c2067775075b
parent71cc77369e02f2f88f8273e2ba32870e1e3bca15 (diff)
make flip left default
add flip both key
-rw-r--r--spectrogram.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/spectrogram.c b/spectrogram.c
index cdd719c..412d95a 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -56,7 +56,7 @@ SDL_Rect wf_left, wf_right;
SDL_Rect sp_left, sp_right;
int die = 0;
-int flip_left = 0;
+int flip_left = 1;
int flip_right = 0;
void
@@ -445,6 +445,12 @@ main(int argc, char **argv)
if (!pressed)
flip_right ^= 1;
break;
+ case SDLK_0:
+ if (!pressed) {
+ flip_left ^= 1;
+ flip_right ^= 1;
+ }
+ break;
default:
break;
}