~l3kn/quad

eb25707a614f0722ce36d5fb9aaf793a3c0c0122 — Leon Rische 6 months ago 35252b0
Use correct alpha values
1 files changed, 5 insertions(+), 5 deletions(-)

M quad.c
M quad.c => quad.c +5 -5
@@ 52,13 52,13 @@ void setColor(SDL_Renderer* renderer, int color, int alpha) {
}

void renderRule(SDL_Renderer* renderer) {
  setColor(renderer, colors[0], 17);
  setColor(grammarRenderer, colors[0], 17);
  setColor(renderer, colors[0], 255);
  setColor(grammarRenderer, colors[0], 255);
  SDL_RenderClear(renderer);
  setColor(renderer, colors[1], 17);
  setColor(grammarRenderer, colors[1], 17);
  setColor(renderer, colors[1], 255);
  setColor(grammarRenderer, colors[1], 255);

  expandRule(renderer, 0, 0, SIZE, &rules[currentRule]);
  expandRule(renderer, 0, 0, SIZE, currentRule, rules);
  grammarTexture = SDL_CreateTextureFromSurface(mainRenderer, grammarSurface);
}