equal
deleted
inserted
replaced
201 } |
201 } |
202 } |
202 } |
203 |
203 |
204 static void MusicTrackSelectionWndProc(Window *w, WindowEvent *e) |
204 static void MusicTrackSelectionWndProc(Window *w, WindowEvent *e) |
205 { |
205 { |
206 switch(e->event) { |
206 switch (e->event) { |
207 case WE_PAINT: { |
207 case WE_PAINT: { |
208 const byte* p; |
208 const byte* p; |
209 uint i; |
209 uint i; |
210 int y; |
210 int y; |
211 |
211 |
319 AllocateWindowDescFront(&_music_track_selection_desc, 0); |
319 AllocateWindowDescFront(&_music_track_selection_desc, 0); |
320 } |
320 } |
321 |
321 |
322 static void MusicWindowWndProc(Window *w, WindowEvent *e) |
322 static void MusicWindowWndProc(Window *w, WindowEvent *e) |
323 { |
323 { |
324 switch(e->event) { |
324 switch (e->event) { |
325 case WE_PAINT: { |
325 case WE_PAINT: { |
326 uint i; |
326 uint i; |
327 StringID str; |
327 StringID str; |
328 |
328 |
329 w->click_state |= 0x280; |
329 w->click_state |= 0x280; |
391 14, |
391 14, |
392 0); |
392 0); |
393 } break; |
393 } break; |
394 |
394 |
395 case WE_CLICK: |
395 case WE_CLICK: |
396 switch(e->click.widget) { |
396 switch (e->click.widget) { |
397 case 2: // skip to prev |
397 case 2: // skip to prev |
398 if (!_song_is_active) |
398 if (!_song_is_active) |
399 return; |
399 return; |
400 SkipToPrevSong(); |
400 SkipToPrevSong(); |
401 break; |
401 break; |