summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-02-24 00:23:47 -0600
committerepoch <epoch@hacking.allowed.org>2020-02-24 00:23:47 -0600
commitb1f45a8a1528ba0f9c2068844df2e6293e5e46db (patch)
tree51e8f81223ae426a20acdb3bf742a0473a284738 /src
parent18fbe060074d8c2ed1b739dac1051fbe1e170301 (diff)
downloadhackvr-b1f45a8a1528ba0f9c2068844df2e6293e5e46db.tar.gz
hackvr-b1f45a8a1528ba0f9c2068844df2e6293e5e46db.zip
small cleanup in the framebuffer version (not tested) to do what the X11 version does with the input mode
Diffstat (limited to 'src')
-rw-r--r--src/graphics_cs_fb.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/graphics_cs_fb.c b/src/graphics_cs_fb.c
index edfa4b6..b566302 100644
--- a/src/graphics_cs_fb.c
+++ b/src/graphics_cs_fb.c
@@ -166,11 +166,8 @@ void draw_cs_shape(cs_s_t s) {//this is implemented as draw_cs_line... hrm. it c
gra_global.mouse.x <= maxx &&
gra_global.mouse.y <= maxy) {
if(gra_global.mousemap[0] == -1) {//if we're inside the bounding box let's make SOMETHING happen.
- gra_global.mousemap[0]=0;
- printf("%s action %s\n",global.user,s.id);
- }
- if(!strncmp(s.id,"term",4)) {
- gra_global.input_mode=1;
+ gra_global.mousemap[0]=0;
+ printf("%s action %s\n",global.user,s.id);
}
bb.id=strdup("boundingbox");
bb.len=4;
@@ -587,7 +584,6 @@ int graphics_event_handler(int world_changed) { //should calling draw_screen be
*/
#endif
if(world_changed) {
- gra_global.input_mode=0;
draw_screen();//includes its own flip.
}
return 1;//redraw;