Browse Source

fixed hex parsing, defaulting alpha to 1

v1.x
Tj Holowaychuk 14 years ago
parent
commit
9c5a511051
  1. 2
      src/color.cc

2
src/color.cc

@ -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);
}
/*

Loading…
Cancel
Save