~kikoodx/painfull-success-cg

1ed7169f45a6f92ad6bf8993eef656ab4554917f — KikooDX 1 year, 6 months ago 22569a2
upgrade to gint 2.4
2 files changed, 5 insertions(+), 6 deletions(-)

M CMakeLists.txt
M src/main.c
M CMakeLists.txt => CMakeLists.txt +1 -1
@@ 24,7 24,7 @@ include(GenerateG1A)
include(GenerateG3A)
include(Fxconv)
include_directories(include)
find_package(Gint 2.1 REQUIRED)
find_package(Gint 2.4.0 REQUIRED)

set(SOURCES
  src/main.c

M src/main.c => src/main.c +4 -5
@@ 15,10 15,9 @@
#include <stdbool.h>

int
callback(volatile void *arg)
callback(volatile int *arg)
{
	volatile bool *has_ticked = arg;
	*has_ticked = true;
	*arg = true;
	return 0;
}



@@ 39,9 38,9 @@ main(void)
	i16 y_offset = DRAW_OFFSET_Y_DEFAULT;

	/* UPS control. */
	volatile bool has_ticked = true;
	volatile int has_ticked = true;
	int timer =
	    timer_setup(TIMER_ANY, 1000000 / TARGET_UPS, callback, &has_ticked);
	    timer_configure(TIMER_ANY, 1000000 / TARGET_UPS, GINT_CALL(callback, &has_ticked));
	timer_start(timer);

	/* Core loop. */