Started working on figuring out how to properly support full screen and
high DPI
This commit is contained in:
1 parent
dbc8c88b89
commit
ffaa6e5ae7
8 files changed
+53
-22
No files matched your search
+2
-2
@@ -105,7 +105,7 @@ void handle_all_objects_events(ObjectStore *os, const SDL_Event *event) {
|
||||
for (int i = 0; i < os->count; ++i) {
|
||||
if (os->event_handlers[i]) {
|
||||
void *object = os->object_ptrs[i];
|
||||
(os->event_handlers[i])(event, object);
|
||||
(os->event_handlers[i])(object, event);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -118,7 +118,7 @@ void update_all_objects(ObjectStore *os, float delta) {
|
||||
for (int i = 0; i < os->count; ++i) {
|
||||
if (os->update_funcs[i]) {
|
||||
void *object = os->object_ptrs[i];
|
||||
(os->update_funcs[i])(delta, object);
|
||||
(os->update_funcs[i])(object, delta);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user