summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cc15a62)
raw | patch | inline | side by side (parent: cc15a62)
author | Max Kellermann <max@duempel.org> | |
Thu, 2 Oct 2008 13:20:18 +0000 (15:20 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 2 Oct 2008 13:20:18 +0000 (15:20 +0200) |
By calling artist_lw_cmd() after the big switch, we can override
behaviour, and we can modify the command.
behaviour, and we can modify the command.
src/screen_artist.c | patch | blob | history |
diff --git a/src/screen_artist.c b/src/screen_artist.c
index b15b89dbbf7221a829879304e3e02130463d5932..c9c6f9b019a1acc4e569f8aebe8cc07d361f2796 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
char *selected;
int ret;
- if (artist_lw_cmd(cmd)) {
- artist_repaint();
- return 1;
- }
-
switch(cmd) {
case CMD_PLAY:
switch (mode) {
break;
}
+ if (artist_lw_cmd(cmd)) {
+ artist_repaint();
+ return 1;
+ }
+
return 0;
}