src/osd/winui/properties.c
| r7981 | r7982 | |
| 140 | 140 | #include "winmain.h" |
| 141 | 141 | #include "strconv.h" |
| 142 | 142 | #include "winutf8.h" |
| 143 | | #include "sound/2413intf.h" |
| 144 | | #include "sound/3812intf.h" |
| 145 | 143 | #include "sound/samples.h" |
| 146 | 144 | #include "sound/vlm5030.h" |
| 147 | 145 | |
| 148 | | typedef HANDLE HTHEME; |
| 149 | | |
| 150 | 146 | #ifdef _MSC_VER |
| 151 | 147 | #define snprintf _snprintf |
| 152 | 148 | #endif |
| r7981 | r7982 | |
| 158 | 154 | #include "propertiesms.h" |
| 159 | 155 | #endif |
| 160 | 156 | |
| 161 | | // missing win32 api defines |
| 162 | | #ifndef TBCD_TICS |
| 163 | | #define TBCD_TICS 1 |
| 164 | | #endif |
| 165 | | #ifndef TBCD_THUMB |
| 166 | | #define TBCD_THUMB 2 |
| 167 | | #endif |
| 168 | | #ifndef TBCD_CHANNEL |
| 169 | | #define TBCD_CHANNEL 3 |
| 170 | | #endif |
| 171 | | |
| 172 | 157 | #if defined(__GNUC__) |
| 173 | 158 | /* fix warning: cast does not match function type */ |
| 174 | 159 | #undef PropSheet_GetTabControl |
| r7981 | r7982 | |
| 196 | 181 | static void InitializeSelectScreenUI(HWND hwnd); |
| 197 | 182 | static void InitializeD3DVersionUI(HWND hwnd); |
| 198 | 183 | static void InitializeVideoUI(HWND hwnd); |
| 199 | | static void InitializeEffectUI(HWND hWnd); |
| 200 | 184 | static void InitializeBIOSUI(HWND hwnd); |
| 201 | 185 | static void InitializeControllerMappingUI(HWND hwnd); |
| 202 | 186 | static void UpdateOptions(HWND hDlg, datamap *map, core_options *opts); |
| r7981 | r7982 | |
| 2645 | 2629 | InitializeSkippingUI(hDlg); |
| 2646 | 2630 | InitializeRotateUI(hDlg); |
| 2647 | 2631 | InitializeSelectScreenUI(hDlg); |
| 2648 | | InitializeEffectUI(hDlg); |
| 2649 | 2632 | InitializeBIOSUI(hDlg); |
| 2650 | 2633 | InitializeControllerMappingUI(hDlg); |
| 2651 | 2634 | InitializeD3DVersionUI(hDlg); |
| r7981 | r7982 | |
| 2798 | 2781 | curSel = ComboBox_GetCurSel(hCtrl); |
| 2799 | 2782 | if ((curSel < 0) || (curSel >= MAX_SCREENS)) |
| 2800 | 2783 | curSel = 0; |
| 2801 | | (void)ComboBox_ResetContent(hCtrl ); |
| 2784 | (void)ComboBox_ResetContent(hCtrl); |
| 2802 | 2785 | for (i = 0; i < NUMSELECTSCREEN && i < options_get_int(pCurrentOpts, WINOPTION_NUMSCREENS) ; i++) |
| 2803 | 2786 | { |
| 2804 | 2787 | (void)ComboBox_InsertString(hCtrl, i, g_ComboBoxSelectScreen[i].m_pText); |
| r7981 | r7982 | |
| 2806 | 2789 | } |
| 2807 | 2790 | // Smaller Amount of screens was selected, so use 0 |
| 2808 | 2791 | if( i< curSel ) |
| 2809 | | (void)ComboBox_SetCurSel(hCtrl, 0 ); |
| 2792 | (void)ComboBox_SetCurSel(hCtrl, 0); |
| 2810 | 2793 | else |
| 2811 | | (void)ComboBox_SetCurSel(hCtrl, curSel ); |
| 2794 | (void)ComboBox_SetCurSel(hCtrl, curSel); |
| 2812 | 2795 | } |
| 2813 | 2796 | } |
| 2814 | 2797 | |
| r7981 | r7982 | |
| 2818 | 2801 | UpdateSelectScreenUI(hwnd); |
| 2819 | 2802 | } |
| 2820 | 2803 | |
| 2821 | | static void InitializeEffectUI(HWND hwnd) |
| 2822 | | { |
| 2823 | | } |
| 2824 | | |
| 2825 | 2804 | static void InitializeControllerMappingUI(HWND hwnd) |
| 2826 | 2805 | { |
| 2827 | 2806 | int i; |