comparison gui/win32/dialogs.c @ 33725:f3361b27a151

Rename the gui() symbolic constants. Use prefix GMP for the constants, rename them and use upper case characters. For optical reasons, change parameter arg from NULL to 0 where it isn't used to pass anything.
author ib
date Tue, 05 Jul 2011 10:47:51 +0000
parents c919fb3d2531
children 81f71d910333
comparison
equal deleted inserted replaced
33724:c919fb3d2531 33725:f3361b27a151
706 { 706 {
707 int index = SendMessage(listbox, LB_GETCURSEL, 0, 0); 707 int index = SendMessage(listbox, LB_GETCURSEL, 0, 0);
708 int len = SendMessage(listbox, LB_GETTEXTLEN, index, 0); 708 int len = SendMessage(listbox, LB_GETTEXTLEN, index, 0);
709 if (len) 709 if (len)
710 { 710 {
711 if (guiInfo.Playing) gui(guiSetState, (void *) GUI_STOP); 711 if (guiInfo.Playing) gui(GMP_SET_STATE, (void *) GUI_STOP);
712 free(skinName); 712 free(skinName);
713 skinName = malloc(len + 1); 713 skinName = malloc(len + 1);
714 SendMessage(listbox, LB_GETTEXT, (WPARAM) index, (LPARAM) skinName); 714 SendMessage(listbox, LB_GETTEXT, (WPARAM) index, (LPARAM) skinName);
715 /* fill out the full pathname to the skin */ 715 /* fill out the full pathname to the skin */
716 strcpy(skinspath, get_path("skins")); 716 strcpy(skinspath, get_path("skins"));