~l3kn/quad

5b5e395d51cecae6ee08f941edcf8461809cf61f — Leon Rische 6 months ago 4c9cb71
m
2 files changed, 12 insertions(+), 15 deletions(-)

M config.h
M quad.c
M config.h => config.h +10 -13
@@ 1,11 1,9 @@
#define SWIDTH 360*2
#define SHEIGHT 680*2

#define SIZE 360
#define SIZE 500
#define BW 1
#define FLIP

#define PADDING 0
#define PADDING_X 0
#define PADDING_Y 20

#define SCALE 2



@@ 22,19 20,18 @@
#define HRULES (NRULES / WRULES)
#define HPATTERNS (NPATTERNS / WPATTERNS)

#define MENU_X (PADDING + (TILE_SIZE / 2))
#define MENU_Y (PADDING + SIZE + TILE_SIZE)
#define MENU_X (PADDING_X + (TILE_SIZE / 2))
#define MENU_Y (PADDING_Y * 2 + SIZE)
#define MENU_WIDTH (WEDITRULES * WEDIT - 1)
#define MENU_HEIGHT 5
#define TILE_SIZE (SIZE / (MENU_WIDTH + 1))

#define CANVAS_X PADDING
#define CANVAS_Y PADDING
#define CANVAS_X PADDING_X
#define CANVAS_Y PADDING_Y

#define HEIGHT (PADDING +                \
               (MENU_HEIGHT + 2) * TILE_SIZE + SIZE +  \
               PADDING)
#define WIDTH (SIZE + 2 * PADDING)
#define HEIGHT (PADDING_Y * 3 +                \
               MENU_HEIGHT * TILE_SIZE + SIZE)
#define WIDTH (SIZE + 2 * PADDING_X)

#define COLOR_BLACK 0x000000
#define COLOR_WHITE 0xFFFFFF

M quad.c => quad.c +2 -2
@@ 22,8 22,8 @@ Rule rules[NRULES];
bool quit = false;

bool selector = false;
int selectorX = PADDING;
int selectorY = PADDING;
int selectorX;
int selectorY;

void saveBMP() {
  time_t currentTime;