Index: gm/colorcube.cpp |
diff --git a/gm/colorcube.cpp b/gm/colorcube.cpp |
index 59463fcd9e424b8da4e0c7e2d8afbd1355a6edc4..931dcfaf51beda81516f5357115eddc1d6b10b10 100644 |
--- a/gm/colorcube.cpp |
+++ b/gm/colorcube.cpp |
@@ -85,10 +85,11 @@ protected: |
for (int r = 0; r < size; ++r) { |
for (int g = 0; g < size; ++g) { |
for (int b = 0; b < size; ++b) { |
- pixels[(size * ((size * b) + g)) + r] = SkColorSetARGB(0xFF, |
+ pixels[(size * ((size * b) + g)) + r] = sk_tool_utils::color_to_565( |
+ SkColorSetARGB(0xFF, |
invR ? invLut[r] : lut[r], |
invG ? invLut[g] : lut[g], |
- invB ? invLut[b] : lut[b]); |
+ invB ? invLut[b] : lut[b])); |
} |
} |
} |