some bug fixes

This commit is contained in:
aap
2018-07-04 19:21:34 +02:00
parent 2cffb3f494
commit b1c3c1dca8
6 changed files with 58 additions and 13 deletions

View File

@@ -378,6 +378,7 @@ Image::unindex(void)
}
this->free();
this->depth = ndepth;
this->bpp = ndepth < 8 ? 1 : ndepth/8;
this->stride = nstride;
this->setPixels(npixels);
}