|
|
| version 1.1, 2004/08/01 05:31:32 | version 1.3, 2004/08/07 07:19:56 |
|---|---|
| Line 5 | Line 5 |
| #include "dosio.h" | #include "dosio.h" |
| #include "soundmng.h" | #include "soundmng.h" |
| #include "sysmng.h" | #include "sysmng.h" |
| #include "ini.h" | |
| #include "dialog.h" | #include "dialog.h" |
| #include "dialogs.h" | #include "dialogs.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "draw.h" | |
| #include "ini.h" | |
| // #include "ddraws.h" | |
| #include "palettes.h" | #include "palettes.h" |
| #include "makescrn.h" | |
| #define LIMITS(v, n, m) (((v) > (m))?(m):(((v) < (n))?(n):(v))) | #define LIMITS(v, n, m) (((v) > (m))?(m):(((v) < (n))?(n):(v))) |
| Line 33 static void cfgcreate(HWND hWnd) { | Line 31 static void cfgcreate(HWND hWnd) { |
| SetDlgItemText(hWnd, IDC_SNDBUFFER, work); | SetDlgItemText(hWnd, IDC_SNDBUFFER, work); |
| SPRINTF(work, str_u, xmilcfg.MOTORVOL); | SPRINTF(work, str_u, xmilcfg.MOTORVOL); |
| SetDlgItemText(hWnd, IDC_SEEKVOL, work); | SetDlgItemText(hWnd, IDC_SEEKVOL, work); |
| SetDlgItemCheck(hWnd, IDC_HIGHPRY, xmilcfg.SOUNDPLY); | |
| if (xmilcfg.TEXTMODE) { | if (xmilcfg.TEXTMODE) { |
| res = IDC_TXTENHANCED; | res = IDC_TXTENHANCED; |
| } | } |
| Line 80 static void cfgupdate(HWND hWnd) { | Line 77 static void cfgupdate(HWND hWnd) { |
| if (xmilcfg.samplingrate != wval) { | if (xmilcfg.samplingrate != wval) { |
| xmilcfg.samplingrate = wval; | xmilcfg.samplingrate = wval; |
| updateflag |= SYS_UPDATECFG; | updateflag |= SYS_UPDATECFG; |
| soundrenewal = TRUE; | corestat.soundrenewal = TRUE; |
| } | } |
| GetDlgItemText(hWnd, IDC_SNDBUFFER, work, NELEMENTS(work)); | GetDlgItemText(hWnd, IDC_SNDBUFFER, work, NELEMENTS(work)); |
| Line 88 static void cfgupdate(HWND hWnd) { | Line 85 static void cfgupdate(HWND hWnd) { |
| if (xmilcfg.delayms != wval) { | if (xmilcfg.delayms != wval) { |
| xmilcfg.delayms = wval; | xmilcfg.delayms = wval; |
| updateflag |= SYS_UPDATECFG; | updateflag |= SYS_UPDATECFG; |
| soundrenewal = TRUE; | corestat.soundrenewal = TRUE; |
| } | } |
| GetDlgItemText(hWnd, IDC_SEEKVOL, work, NELEMENTS(work)); | GetDlgItemText(hWnd, IDC_SEEKVOL, work, NELEMENTS(work)); |
| Line 100 static void cfgupdate(HWND hWnd) { | Line 97 static void cfgupdate(HWND hWnd) { |
| updateflag |= SYS_UPDATEOSCFG; | updateflag |= SYS_UPDATEOSCFG; |
| } | } |
| bval = (UINT8)GetDlgItemCheck(hWnd, IDC_HIGHPRY); | |
| if (xmilcfg.SOUNDPLY != bval) { | |
| xmilcfg.SOUNDPLY = bval; | |
| updateflag |= SYS_UPDATECFG; | |
| } | |
| bval = (UINT8)GetDlgItemCheck(hWnd, IDC_TXTENHANCED); | bval = (UINT8)GetDlgItemCheck(hWnd, IDC_TXTENHANCED); |
| if (xmilcfg.TEXTMODE != bval) { | if (xmilcfg.TEXTMODE != bval) { |
| xmilcfg.TEXTMODE = bval; | xmilcfg.TEXTMODE = bval; |
| textdrawproc_renewal(); | |
| updateflag |= SYS_UPDATECFG; | updateflag |= SYS_UPDATECFG; |
| } | } |
| Line 147 static void cfgupdate(HWND hWnd) { | Line 137 static void cfgupdate(HWND hWnd) { |
| } | } |
| if (renewalflg) { | if (renewalflg) { |
| reflesh_palette(); | reflesh_palette(); |
| palandply = 1; | makescrn.palandply = 1; |
| updateflag |= SYS_UPDATECFG; | updateflag |= SYS_UPDATECFG; |
| } | } |
| sysmng_update(updateflag); | sysmng_update(updateflag); |