Skip to content

Commit

Permalink
Remove snap help text
Browse files Browse the repository at this point in the history
Not very useful I think.
  • Loading branch information
guillaumechereau committed Jan 1, 2024
1 parent 959dc7e commit 032020f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/goxel.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,20 +488,12 @@ int goxel_iter(inputs_t *inputs)

static void set_cursor_hint(cursor_t *curs)
{
const char *snap_str = NULL;
if (!curs->snaped) {
goxel_set_hint_text(NULL);
return;
}
if (curs->snaped == SNAP_VOLUME) snap_str = "volume";
if (curs->snaped == SNAP_PLANE) snap_str = "plane";
if (curs->snaped == SNAP_IMAGE_BOX) snap_str = "bounding box";
if ( curs->snaped == SNAP_SELECTION_IN ||
curs->snaped == SNAP_SELECTION_OUT) snap_str = "selection";

goxel_set_hint_text("[%.0f %.0f %.0f] (%s)",
curs->pos[0] - 0.5, curs->pos[1] - 0.5, curs->pos[2] - 0.5,
snap_str);
goxel_set_hint_text("[%.0f %.0f %.0f]",
curs->pos[0] - 0.5, curs->pos[1] - 0.5, curs->pos[2] - 0.5);
}

static int on_drag(const gesture_t *gest, void *user)
Expand Down

0 comments on commit 032020f

Please sign in to comment.