Skip to content

Commit

Permalink
fixed hex parsing, defaulting alpha to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 24, 2010
1 parent 4e501aa commit 9c5a511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/color.cc
Expand Up @@ -274,7 +274,7 @@ rgba_from_rgba(uint8_t r, uint8_t g, uint8_t b, uint8_t a) {

static int32_t
rgba_from_rgb(uint8_t r, uint8_t g, uint8_t b) {
return rgba_from_rgba(r, g, b, 0);
return rgba_from_rgba(r, g, b, 255);
}

/*
Expand Down

0 comments on commit 9c5a511

Please sign in to comment.