# HG changeset patch # User user@DESKTOP-COG985U.localdomain # Date 1718100603 -25200 # Node ID d7891cf88359ecfca77b6c20caa693eca7067b18 # Parent bf9dedd36bedcb0e4e0182ab555642711123e3cf fix: missing API changes diff -r bf9dedd36bed -r d7891cf88359 semicongine/platform/windows/audio.nim --- 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: diff -r bf9dedd36bed -r d7891cf88359 semicongine/platform/windows/window.nim --- 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] =