~l3kn/quad

99fe451b6bee5c41d87d310b1fe19da6f7d05a8a — Leon Rische 5 months ago 9a197be
Remove "NONE" pattern type
1 files changed, 4 insertions(+), 4 deletions(-)

M quad.c
M quad.c => quad.c +4 -4
@@ 252,16 252,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 != NONE) {
        } else if (tx == 2 && ty == 0 && selection.type) {
          rules[rule].quads[0] = selection;
          draw();
        } else if (tx == 3 && ty == 0 && selection.type != NONE) {
        } else if (tx == 3 && ty == 0 && selection.type) {
          rules[rule].quads[1] = selection;
          draw();
        } else if (tx == 2 && ty == 1 && selection.type != NONE) {
        } else if (tx == 2 && ty == 1 && selection.type) {
          rules[rule].quads[2] = selection;
          draw();
        } else if (tx == 3 && ty == 1 && selection.type != NONE) {
        } else if (tx == 3 && ty == 1 && selection.type) {
          rules[rule].quads[3] = selection;
          draw();
        }