This commit is contained in:
Ginger Bill
2016-09-22 21:32:25 +01:00
parent 6907951f1e
commit 2e506b7e6e
5 changed files with 204 additions and 189 deletions
+2 -2
View File
@@ -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 {