mirror of https://github.com/fltk/fltk
Fix compiler warning with gcc 4.8.3 under Windows/Cygwin (STR #3199).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10593 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
c0ed548005
commit
c71a9e1c54
|
@ -143,11 +143,12 @@ static void innards(const uchar *buf, int X, int Y, int W, int H,
|
|||
} else
|
||||
#endif
|
||||
if (depth<3) {
|
||||
RGBQUAD *bmi_colors = &bmi.bmiColors[0]; // suppress warning (STR #3199)
|
||||
for (int i=0; i<256; i++) {
|
||||
bmi.bmiColors[i].rgbBlue = (uchar)i;
|
||||
bmi.bmiColors[i].rgbGreen = (uchar)i;
|
||||
bmi.bmiColors[i].rgbRed = (uchar)i;
|
||||
bmi.bmiColors[i].rgbReserved = (uchar)0; // must be zero
|
||||
bmi_colors[i].rgbBlue = (uchar)i; // bmi.bmiColors[i]...
|
||||
bmi_colors[i].rgbGreen = (uchar)i;
|
||||
bmi_colors[i].rgbRed = (uchar)i;
|
||||
bmi_colors[i].rgbReserved = (uchar)0; // must be zero
|
||||
}
|
||||
}
|
||||
bmi.bmiHeader.biWidth = w;
|
||||
|
|
Loading…
Reference in New Issue