comparison gui/win32/preferences.c @ 34610:4ff933a89818

Cosmetic: Rename functions in list.c. Additionally, change a parameter name of new listMgr() and add some doxygen comments to list.h.
author ib
date Sun, 12 Feb 2012 18:44:19 +0000
parents 9082a0976655
children ac6b38cd0d45
comparison
equal deleted inserted replaced
34609:a8497c26c9f1 34610:4ff933a89818
345 SendDlgItemMessage(hwnd, ID_UPDOWN2, UDM_SETRANGE32, (WPARAM)0, (LPARAM)10000); 345 SendDlgItemMessage(hwnd, ID_UPDOWN2, UDM_SETRANGE32, (WPARAM)0, (LPARAM)10000);
346 346
347 while(video_out_drivers[i]) 347 while(video_out_drivers[i])
348 { 348 {
349 const vo_info_t *info = video_out_drivers[i++]->info; 349 const vo_info_t *info = video_out_drivers[i++]->info;
350 if(!video_driver_list) gaddlist(&video_driver_list, (char *)info->short_name); 350 if(!video_driver_list) listSet(&video_driver_list, (char *)info->short_name);
351 SendDlgItemMessage(hwnd, ID_VO_DRIVER, CB_ADDSTRING, 0, (LPARAM) info->short_name); 351 SendDlgItemMessage(hwnd, ID_VO_DRIVER, CB_ADDSTRING, 0, (LPARAM) info->short_name);
352 } 352 }
353 /* Special case for directx:noaccel */ 353 /* Special case for directx:noaccel */
354 SendDlgItemMessage(hwnd, ID_VO_DRIVER, CB_ADDSTRING, 0, (LPARAM) "directx:noaccel"); 354 SendDlgItemMessage(hwnd, ID_VO_DRIVER, CB_ADDSTRING, 0, (LPARAM) "directx:noaccel");
355 SendMessage(vo_driver, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); 355 SendMessage(vo_driver, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
359 const ao_info_t *info = audio_out_drivers[j++]->info; 359 const ao_info_t *info = audio_out_drivers[j++]->info;
360 if(!audio_driver_list) 360 if(!audio_driver_list)
361 { 361 {
362 // FIXME: default priority (i.e. order in audio_out_drivers) should be fixed instead 362 // FIXME: default priority (i.e. order in audio_out_drivers) should be fixed instead
363 // if win32 as default is really desirable 363 // if win32 as default is really desirable
364 gaddlist(&audio_driver_list, "win32"/*(char *)info->short_name*/); 364 listSet(&audio_driver_list, "win32"/*(char *)info->short_name*/);
365 } 365 }
366 SendDlgItemMessage(hwnd, ID_AO_DRIVER, CB_ADDSTRING, 0, (LPARAM) info->short_name); 366 SendDlgItemMessage(hwnd, ID_AO_DRIVER, CB_ADDSTRING, 0, (LPARAM) info->short_name);
367 } 367 }
368 SendMessage(ao_driver, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); 368 SendMessage(ao_driver, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
369 369