alloc big buffers on heap
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "tim.h"
|
||||
|
||||
bool tim_is_event_key(TimEventType type, TimKey key) {
|
||||
return tim.event.type == type && tim.event.key == key;
|
||||
return tim->event.type == type && tim->event.key == key;
|
||||
}
|
||||
|
||||
bool tim_is_key_press(TimKey key) {
|
||||
@@ -9,8 +9,8 @@ bool tim_is_key_press(TimKey key) {
|
||||
}
|
||||
|
||||
bool tim_is_mouse_over(TimRect r) {
|
||||
i32 x = tim.event.x;
|
||||
i32 y = tim.event.y;
|
||||
i32 x = tim->event.x;
|
||||
i32 y = tim->event.y;
|
||||
return x >= r.x && x < r.x + r.w && y >= r.y && y < r.y + r.h;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user