diff options
author | epoch <epoch@hacking.allowed.org> | 2020-04-02 04:59:36 -0500 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2020-04-02 04:59:36 -0500 |
commit | 3ad65451ff1326f2fc44057ffa76f44e01c7c6bb (patch) | |
tree | 2f3721130bb362d4d2896ce04d0c19dfef0ef651 /src/graphics_c3.c | |
parent | 192c4437672ce7743f1e567b3fbf2ef7c9c4bbca (diff) | |
download | hackvr-3ad65451ff1326f2fc44057ffa76f44e01c7c6bb.tar.gz hackvr-3ad65451ff1326f2fc44057ffa76f44e01c7c6bb.zip |
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.
Diffstat (limited to 'src/graphics_c3.c')
-rw-r--r-- | src/graphics_c3.c | 5 |
1 files changed, 2 insertions, 3 deletions
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(); } |