Skip to content
Snippets Groups Projects
Commit cb695bf0 authored by OTB Bot's avatar OTB Bot
Browse files

conversion uchar (warning VS7.1)

parent fd245c9f
No related branches found
No related tags found
No related merge requests found
......@@ -55,11 +55,11 @@ fl_read_image(uchar *p, // I - Pixel buffer or NULL to allocate
for (x = 0; x < w; x ++, ptr += d) {
COLORREF c = GetPixel(fl_gc, X + x, Y + y);
ptr[0] = c;
ptr[0] = (uchar)(c);
c >>= 8;
ptr[1] = c;
ptr[1] = (uchar)(c);
c >>= 8;
ptr[2] = c;
ptr[2] = (uchar)(c);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment