Mercurial > games > semicongine
changeset 1143:d7891cf88359
fix: missing API changes
author | user@DESKTOP-COG985U.localdomain |
---|---|
date | Tue, 11 Jun 2024 17:10:03 +0700 |
parents | bf9dedd36bed |
children | 6a7f09909a37 |
files | semicongine/platform/windows/audio.nim semicongine/platform/windows/window.nim |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/semicongine/platform/windows/audio.nim Sat Jun 08 16:19:05 2024 +0700 +++ b/semicongine/platform/windows/audio.nim Tue Jun 11 17:10:03 2024 +0700 @@ -25,7 +25,7 @@ wBitsPerSample: 16, cbSize: 0, ) - checkWinMMResult waveOutOpen(addr result.handle, WAVE_MAPPER, addr format, DWORD_PTR(0), DWORD_PTR(0), CALLBACK_NULL) + CheckWinMMResult waveOutOpen(addr result.handle, WAVE_MAPPER, addr format, DWORD_PTR(0), DWORD_PTR(0), CALLBACK_NULL) for i in 0 ..< buffers.len: result.buffers.add WAVEHDR( @@ -34,13 +34,13 @@ dwLoops: 1, ) for i in 0 ..< result.buffers.len: - checkWinMMResult waveOutPrepareHeader(result.handle, addr result.buffers[i], UINT(sizeof(WAVEHDR))) - checkWinMMResult waveOutWrite(result.handle, addr result.buffers[i], UINT(sizeof(WAVEHDR))) + CheckWinMMResult waveOutPrepareHeader(result.handle, addr result.buffers[i], UINT(sizeof(WAVEHDR))) + CheckWinMMResult waveOutWrite(result.handle, addr result.buffers[i], UINT(sizeof(WAVEHDR))) proc WriteSoundData*(soundDevice: var NativeSoundDevice, buffer: int) = while (soundDevice.buffers[buffer].dwFlags and WHDR_DONE) == 0: sleep(1) - checkWinMMResult waveOutWrite(soundDevice.handle, addr soundDevice.buffers[buffer], UINT(sizeof(WAVEHDR))) + CheckWinMMResult waveOutWrite(soundDevice.handle, addr soundDevice.buffers[buffer], UINT(sizeof(WAVEHDR))) proc CloseSoundDevice*(soundDevice: var NativeSoundDevice) = for i in 0 ..< soundDevice.buffers.len:
--- a/semicongine/platform/windows/window.nim Sat Jun 08 16:19:05 2024 +0700 +++ b/semicongine/platform/windows/window.nim Tue Jun 11 17:10:03 2024 +0700 @@ -129,7 +129,7 @@ proc Size*(window: NativeWindow): (int, int) = var rect: RECT - checkWin32Result GetWindowRect(window.hwnd, addr(rect)) + CheckWin32Result GetWindowRect(window.hwnd, addr(rect)) (int(rect.right - rect.left), int(rect.bottom - rect.top)) proc PendingEvents*(window: NativeWindow): seq[Event] =