summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorepoch <epoch@thebackupbox.net>2020-04-14 06:11:35 -0500
committerepoch <epoch@thebackupbox.net>2020-04-14 06:11:35 -0500
commit8ed4d5bcb2337f5542799f8b9eb05c5b6b3f360e (patch)
treee5112c7cd99a120fbda2b8b8f47c09871329cf49 /src
parentb459d3c8c98e5ca7b62a1a5677e5594b146ff84d (diff)
downloadhackvr-8ed4d5bcb2337f5542799f8b9eb05c5b6b3f360e.tar.gz
hackvr-8ed4d5bcb2337f5542799f8b9eb05c5b6b3f360e.zip
redraw on mouse movement in X11 because... I dunno
Diffstat (limited to 'src')
-rw-r--r--src/mouse_x11.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mouse_x11.c b/src/mouse_x11.c
index 16c577c..719940e 100644
--- a/src/mouse_x11.c
+++ b/src/mouse_x11.c
@@ -73,6 +73,9 @@ int mouse_event_handler() {//this returns HVM_ key + for buttondown and - for bu
global.camera.r.x.d=gra_global.oldcamera.x.d + (gra_global.mouse.y - gra_global.dragstart[2].y);
global.camera.r.y.d=gra_global.oldcamera.y.d + (gra_global.mouse.x - gra_global.dragstart[2].x);
}
+ //do we need to redraw on mouse movement?
+ //probably.
+ redrawplzkthx=1;
}
if(redrawplzkthx) {
redraw();