aboutsummaryrefslogtreecommitdiff
path: root/code/punity.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-22 21:32:25 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-22 21:32:25 +0100
commit2e506b7e6ebf527f94ac5faaecb54771ed137c48 (patch)
tree297009da3366df1d098ed54ffdb4ebbea3e2b1df /code/punity.odin
parent6907951f1eebcc9053ccfbe32a30dc704e790747 (diff)
Demo 003
Diffstat (limited to 'code/punity.odin')
-rw-r--r--code/punity.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/punity.odin b/code/punity.odin
index de29555fd..69ab1dff8 100644
--- a/code/punity.odin
+++ b/code/punity.odin
@@ -434,7 +434,7 @@ run :: proc(user_init, user_step: proc(c: ^Core)) {
{
data: [128]byte
buf := data[:0]
- fmt.printf_to_buffer(^buf, "Punity: % ms\x00", dt*1000)
+ fmt.bprintf(^buf, "Punity: % ms\x00", dt*1000)
win32.SetWindowTextA(win32_window, buf.data)
}
@@ -447,7 +447,7 @@ run :: proc(user_init, user_step: proc(c: ^Core)) {
}
}
- memory_zero(^_core.key_deltas[0], size_of(_core.key_deltas[0]))
+ memory_zero(^_core.key_deltas[0], size_of_val(_core.key_deltas[0]))
for PeekMessageA(^message, null, 0, 0, PM_REMOVE) != 0 {