Mercurial > msvpvf
changeset 26:0d19cff70e93
cast for type, make type a static variable
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Thu, 07 Apr 2022 23:24:09 -0400 |
parents | eb15d8595e8c |
children | 7103ac60ebdc |
files | src/gui.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui.c Thu Apr 07 19:46:17 2022 -0400 +++ b/src/gui.c Thu Apr 07 23:24:09 2022 -0400 @@ -33,8 +33,8 @@ #define SAVE_FILE_BUTTON 3 HWND hWndListBox, hWndComboBox; -int16_t version = 11; -enum type { +int16_t version = 13; +static enum type { vf, veg }; @@ -215,7 +215,7 @@ if (LOWORD(wParam) == COMBOBOX) version = (int16_t)(8+SendMessage((HWND) lParam, (UINT) CB_GETCURSEL, (WPARAM) 0, (LPARAM) 0)); if (LOWORD(wParam) == LISTBOX) - type = SendMessage((HWND) lParam, (UINT) LB_GETCURSEL, (WPARAM) 0, (LPARAM) 0); + type = (type)SendMessage((HWND) lParam, (UINT) LB_GETCURSEL, (WPARAM) 0, (LPARAM) 0); } switch(wParam) { case OPEN_FILE_BUTTON: