summaryrefslogtreecommitdiff
path: root/music_gui.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-09-23 02:39:24 +0000
committerbelugas <belugas@openttd.org>2006-09-23 02:39:24 +0000
commit1c56a5ae0fefac5636a7f93c3bed9285fca558d8 (patch)
tree94c5771fcfbd839db8eabe8b14662d04e44ab61c /music_gui.c
parent0f78b620fbb4e4ca744ceffffc43a9c0846bca12 (diff)
downloadopenttd-1c56a5ae0fefac5636a7f93c3bed9285fca558d8.tar.xz
(svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
Diffstat (limited to 'music_gui.c')
-rw-r--r--music_gui.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/music_gui.c b/music_gui.c
index 79d443169..c98ead015 100644
--- a/music_gui.c
+++ b/music_gui.c
@@ -239,9 +239,9 @@ static void MusicTrackSelectionWndProc(Window *w, WindowEvent *e)
}
case WE_CLICK:
- switch (e->click.widget) {
+ switch (e->we.click.widget) {
case 3: { /* add to playlist */
- int y = (e->click.pt.y - 23) / 6;
+ int y = (e->we.click.pt.y - 23) / 6;
uint i;
byte *p;
@@ -261,7 +261,7 @@ static void MusicTrackSelectionWndProc(Window *w, WindowEvent *e)
} break;
case 4: { /* remove from playlist */
- int y = (e->click.pt.y - 23) / 6;
+ int y = (e->we.click.pt.y - 23) / 6;
uint i;
byte *p;
@@ -291,7 +291,7 @@ static void MusicTrackSelectionWndProc(Window *w, WindowEvent *e)
#endif
case 5: case 6: case 7: case 8: case 9: case 10: /* set playlist */
- msf.playlist = e->click.widget - 5;
+ msf.playlist = e->we.click.widget - 5;
SetWindowDirty(w);
InvalidateWindow(WC_MUSIC_WINDOW, 0);
StopMusic();
@@ -402,7 +402,7 @@ static void MusicWindowWndProc(Window *w, WindowEvent *e)
} break;
case WE_CLICK:
- switch (e->click.widget) {
+ switch (e->we.click.widget) {
case 2: // skip to prev
if (!_song_is_active)
return;
@@ -421,7 +421,7 @@ static void MusicWindowWndProc(Window *w, WindowEvent *e)
break;
case 6:{ // volume sliders
byte *vol,new_vol;
- int x = e->click.pt.x - 88;
+ int x = e->we.click.pt.x - 88;
if (x < 0)
return;
@@ -451,7 +451,7 @@ static void MusicWindowWndProc(Window *w, WindowEvent *e)
ShowMusicTrackSelection();
break;
case 12: case 13: case 14: case 15: case 16: case 17: // playlist
- msf.playlist = e->click.widget - 12;
+ msf.playlist = e->we.click.widget - 12;
SetWindowDirty(w);
InvalidateWindow(WC_MUSIC_TRACK_SELECTION, 0);
StopMusic();