small improvments
This commit is contained in:
parent
8efd1a3bfb
commit
5d883d1e35
@ -19,7 +19,7 @@ static void prepareImageFile(const char *path, unsigned short int width, unsigne
|
||||
{
|
||||
for(unsigned int i = 0; i < (numberOfImages * width * height); i++)
|
||||
{
|
||||
buffer[i] = (GrayScalePixelType)i;
|
||||
buffer[i] = (GrayScalePixelType)(i & 0xFF);
|
||||
}
|
||||
|
||||
fwrite(fileTag, sizeof(fileTag[0]), strlen(fileTag), file);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user