From 3ad65451ff1326f2fc44057ffa76f44e01c7c6bb Mon Sep 17 00:00:00 2001 From: epoch Date: Thu, 2 Apr 2020 04:59:36 -0500 Subject: added a handler for graphics events and not only assuming we only need to redraw when there's an input event, so draw_screen() got moved and now redraw() will actually call it. --- src/graphics_c3.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/graphics_c3.c') diff --git a/src/graphics_c3.c b/src/graphics_c3.c index 3240058..0727fd7 100644 --- a/src/graphics_c3.c +++ b/src/graphics_c3.c @@ -476,7 +476,7 @@ void redraw() {//something is requesting a redraw. } } -int graphics_init() { +int graphics_init() {//return the fd needed to read graphics events. //some of these values set global.zoom=25.0l;//I think if this is set to 1, then 1 3d unit is 1 2d unit? global.camera.r.x.d=0; @@ -515,6 +515,5 @@ int graphics_init() { gra_global.drawminimap=DEFAULT_MINIMAP; gra_global.draw3d=2; gra_global.force_redraw=FORCE_REDRAW; - graphics_sub_init(); - return 0;//we're fine + return graphics_sub_init(); } -- cgit v1.2.3