aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2023-03-29 22:05:26 +0200
committerGitHub <noreply@github.com>2023-03-29 22:05:26 +0200
commitff93ea5bf1fa6df80f2f8fb5dc83118015ffc1f1 (patch)
tree7496d2f9e75c707cc5f3bd2c697d07392ef36f75 /core/sys
parent0d900521bc683d7e48ce7744e354102f1272b5e5 (diff)
parent4a54676f31b464c24bb1f687a3aefe0ebb73cb34 (diff)
Merge pull request #2426 from elusivePorpoise/pr2426
Add TIMECAPS stuff
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/windows/winmm.odin7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/sys/windows/winmm.odin b/core/sys/windows/winmm.odin
index 64ace19fc..380a5e9ed 100644
--- a/core/sys/windows/winmm.odin
+++ b/core/sys/windows/winmm.odin
@@ -5,7 +5,14 @@ foreign import winmm "system:Winmm.lib"
@(default_calling_convention="stdcall")
foreign winmm {
+ timeGetDevCaps :: proc(ptc: LPTIMECAPS, cbtc: UINT) -> MMRESULT ---
timeBeginPeriod :: proc(uPeriod: UINT) -> MMRESULT ---
timeEndPeriod :: proc(uPeriod: UINT) -> MMRESULT ---
timeGetTime :: proc() -> DWORD ---
}
+
+LPTIMECAPS :: ^TIMECAPS
+TIMECAPS :: struct {
+ wPeriodMin: UINT,
+ wPeriodMax: UINT,
+} \ No newline at end of file