~l3kn/quad

31cad8e41a77997571a6ad7aba46c28411b6fe0c — Leon Rische 6 months ago 945d9b0
Adjust selector position
1 files changed, 2 insertions(+), 2 deletions(-)

M quad.c
M quad.c => quad.c +2 -2
@@ 191,8 191,8 @@ void handleMouse(SDL_Event event[static 1]) {
      int quad = ry * 2 + (rx - 1);
      selNode = &(rules[index].quads[quad]);
      selector = true;
      selectorX = MENU_X + mx - (mx % TILE_SIZE);
      selectorY = MENU_Y + my - (my % TILE_SIZE) - TILE_SIZE;
      selectorX = MENU_X + (tx - rx) * TILE_SIZE;
      selectorY = MENU_Y + (ty - ry - 1) * TILE_SIZE;
      draw(true);
    }
  }