File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 66# Licenced under Academic Free License version 2.0
77# Review gsKit README & LICENSE files for further details.
88
9- cmake_minimum_required (VERSION 3.0.0 )
9+ cmake_minimum_required (VERSION 3.0...3.12 )
1010
1111project (gsKit)
1212
@@ -337,7 +337,7 @@ endif()
337337if (NOT SKIP_BUILD_EXAMPLES)
338338 set (CMAKE_EXECUTABLE_SUFFIX .elf)
339339 set (GSKIT_SAMPLE_LIBS "" )
340- list (APPEND GSKIT_SAMPLE_LIBS gskit dmakit gskit_toolkit ${GSKIT_EXTERNAL_LIBS} )
340+ list (APPEND GSKIT_SAMPLE_LIBS gskit_toolkit gskit dmakit ${GSKIT_EXTERNAL_LIBS} )
341341
342342 macro (add_executable_example targetname)
343343 add_executable (${targetname}
Original file line number Diff line number Diff line change @@ -141,19 +141,19 @@ void gsKit_hsync_wait(void);
141141void gsKit_vsync_nowait (void );
142142
143143/// Installs a vsync interrupt handler (vblank_start)
144- int gsKit_add_vsync_handler (int (* vsync_callback )());
144+ int gsKit_add_vsync_handler (int (* vsync_callback )(int ));
145145
146146/// Removes a vsync interrupt handler
147147void gsKit_remove_vsync_handler (int callback_id );
148148
149149/// Installs a hsync interrupt handler (hblank_start)
150- int gsKit_add_hsync_handler (int (* hsync_callback )());
150+ int gsKit_add_hsync_handler (int (* hsync_callback )(int ));
151151
152152/// Removes a hsync interrupt handler
153153void gsKit_remove_hsync_handler (int callback_id );
154154
155155/// Installs a finish interrupt handler
156- int gsKit_add_finish_handler (int (* finish_callback )());
156+ int gsKit_add_finish_handler (int (* finish_callback )(int ));
157157
158158/// Removes a finish interrupt handler
159159void gsKit_remove_finish_handler (int callback_id );
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ void gsKit_hsync_wait(void)
197197#endif
198198
199199#if F_gsKit_add_vsync_handler
200- int gsKit_add_vsync_handler (int (* vsync_callback )())
200+ int gsKit_add_vsync_handler (int (* vsync_callback )(int ))
201201{
202202 int callback_id ;
203203
@@ -225,7 +225,7 @@ void gsKit_remove_vsync_handler(int callback_id)
225225#endif
226226
227227#if F_gsKit_add_hsync_handler
228- int gsKit_add_hsync_handler (int (* hsync_callback )())
228+ int gsKit_add_hsync_handler (int (* hsync_callback )(int ))
229229{
230230 int callback_id ;
231231
@@ -253,7 +253,7 @@ void gsKit_remove_hsync_handler(int callback_id)
253253#endif
254254
255255#if F_gsKit_add_finish_handler
256- int gsKit_add_finish_handler (int (* finish_callback )())
256+ int gsKit_add_finish_handler (int (* finish_callback )(int ))
257257{
258258 int callback_id ;
259259
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ int gsKit_hires_set_bg(GSGLOBAL *gsGlobal, GSTEXTURE * tex)
364364#endif
365365
366366#if F_gsKit_hires_init_screen
367- static int hsync_callback ()
367+ static int hsync_callback (int cause )
368368{
369369 u32 iPass ;
370370
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ float VHeight;
3232volatile int vsync_num = 0 ;
3333int frame_num = 0 ;
3434
35- static int vsync_callback (void )
35+ static int vsync_callback (int cause )
3636{
3737 gsKit_display_buffer (gsGlobal ); // working buffer gets displayed
3838
You can’t perform that action at this time.
0 commit comments