From e9a01c1d2f6edaf2902f82c73c98ff7d25627878 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Apr 2019 01:18:55 +1000 Subject: Cleanup: comments (long lines) in imbuf --- source/blender/imbuf/intern/dds/Color.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'source/blender/imbuf/intern/dds/Color.h') diff --git a/source/blender/imbuf/intern/dds/Color.h b/source/blender/imbuf/intern/dds/Color.h index 16432ffa715..36e2615759b 100644 --- a/source/blender/imbuf/intern/dds/Color.h +++ b/source/blender/imbuf/intern/dds/Color.h @@ -47,9 +47,20 @@ class Color32 { { setRGBA(R, G, B, A); } - //Color32(unsigned char c[4]) { setRGBA(c[0], c[1], c[2], c[3]); } - //Color32(float R, float G, float B) { setRGBA(uint(R*255), uint(G*255), uint(B*255), 0xFF); } - //Color32(float R, float G, float B, float A) { setRGBA(uint(R*255), uint(G*255), uint(B*255), uint(A*255)); } +#if 0 + Color32(unsigned char c[4]) + { + setRGBA(c[0], c[1], c[2], c[3]); + } + Color32(float R, float G, float B) + { + setRGBA(uint(R * 255), uint(G * 255), uint(B * 255), 0xFF); + } + Color32(float R, float G, float B, float A) + { + setRGBA(uint(R * 255), uint(G * 255), uint(B * 255), uint(A * 255)); + } +#endif Color32(unsigned int U) : u(U) { } -- cgit v1.2.3