(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)

This commit is contained in:
rubidium
2009-03-15 15:12:06 +00:00
parent e9ae5ae307
commit f9def73be6
44 changed files with 369 additions and 348 deletions

View File

@@ -345,12 +345,12 @@ static const Widget _music_track_selection_widgets[] = {
{ WIDGETS_END},
};
static const WindowDesc _music_track_selection_desc = {
static const WindowDesc _music_track_selection_desc(
104, 131, 432, 218, 432, 218,
WC_MUSIC_TRACK_SELECTION, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
_music_track_selection_widgets,
};
_music_track_selection_widgets
);
static void ShowMusicTrackSelection()
{
@@ -546,12 +546,12 @@ static const Widget _music_window_widgets[] = {
{ WIDGETS_END},
};
static const WindowDesc _music_window_desc = {
static const WindowDesc _music_window_desc(
0, 22, 300, 66, 300, 66,
WC_MUSIC_WINDOW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
_music_window_widgets,
};
_music_window_widgets
);
void ShowMusicWindow()
{