Skip to content

Commit d5cfa0e

Browse files
authored
Merge pull request #747 from Ziemas/gcc15-graph
graph: fix callback function ptr
2 parents b5a5d50 + 75614e9 commit d5cfa0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ee/graph/include/graph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ extern void graph_set_bgcolor(unsigned char r, unsigned char g, unsigned char b)
132132
extern void graph_set_output(int rc1, int rc2, int alpha_select, int alpha_output, int blend_method, unsigned char alpha);
133133

134134
/** Add a vsync interrupt handler */
135-
extern int graph_add_vsync_handler(int (*vsync_callback)());
135+
extern int graph_add_vsync_handler(int (*vsync_callback)(int));
136136

137137
/** Remove a vsync interrupt handler */
138138
extern void graph_remove_vsync_handler(int callback_id);

ee/graph/src/graph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int graph_initialize(int fbp, int width, int height, int psm, int x, int y)
2626

2727
}
2828

29-
int graph_add_vsync_handler(int (*vsync_callback)())
29+
int graph_add_vsync_handler(int (*vsync_callback)(int))
3030
{
3131

3232
int callback_id;

0 commit comments

Comments
 (0)