Warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -209,13 +209,13 @@ static inline void wx_cmyk_to_rgb(unsigned char* rgb, const unsigned char* cmyk)
|
|||||||
register int c;
|
register int c;
|
||||||
|
|
||||||
c = k + k2 * (255 - cmyk[0]) / 255;
|
c = k + k2 * (255 - cmyk[0]) / 255;
|
||||||
rgb[0] = (c > 255) ? 0 : (255 - c);
|
rgb[0] = (unsigned char)((c > 255) ? 0 : (255 - c));
|
||||||
|
|
||||||
c = k + k2 * (255 - cmyk[1]) / 255;
|
c = k + k2 * (255 - cmyk[1]) / 255;
|
||||||
rgb[1] = (c > 255) ? 0 : (255 - c);
|
rgb[1] = (unsigned char)((c > 255) ? 0 : (255 - c));
|
||||||
|
|
||||||
c = k + k2 * (255 - cmyk[2]) / 255;
|
c = k + k2 * (255 - cmyk[2]) / 255;
|
||||||
rgb[2] = (c > 255) ? 0 : (255 - c);
|
rgb[2] = (unsigned char)((c > 255) ? 0 : (255 - c));
|
||||||
}
|
}
|
||||||
|
|
||||||
// temporarily disable the warning C4611 (interaction between '_setjmp' and
|
// temporarily disable the warning C4611 (interaction between '_setjmp' and
|
||||||
|
Reference in New Issue
Block a user