~l3kn/quad

9777d9c6a4e8be623a9b472401e377a7a2516bbf — Leon Rische 5 months ago 71fb693
Fix selection type check
1 files changed, 4 insertions(+), 4 deletions(-)

M quad.c
M quad.c => quad.c +4 -4
@@ 248,16 248,16 @@ void handleMouse(SDL_Event* event) {
      } else if (tx == 0 && ty == 1 && selection.type == PATTERN) {
        rules[rule].fallback = selection;
        draw();
      } else if (tx == 2 && ty == 0 && selection.type) {
      } else if (tx == 2 && ty == 0) {
        rules[rule].quads[0] = selection;
        draw();
      } else if (tx == 3 && ty == 0 && selection.type) {
      } else if (tx == 3 && ty == 0) {
        rules[rule].quads[1] = selection;
        draw();
      } else if (tx == 2 && ty == 1 && selection.type) {
      } else if (tx == 2 && ty == 1) {
        rules[rule].quads[2] = selection;
        draw();
      } else if (tx == 3 && ty == 1 && selection.type) {
      } else if (tx == 3 && ty == 1) {
        rules[rule].quads[3] = selection;
        draw();
      }