Fix win32 frontend bitmap creation with flags

The windows win32 frontend bitmap creation was ignoring the creation
flags, specifically those related to bitmap opacity so was plotting
images as transparent even if they had no alpha channel values set.
This commit is contained in:
Vincent Sanders 2015-04-12 22:45:32 +01:00
parent 4133154215
commit 7a28131e49

View File

@ -84,7 +84,11 @@ void *bitmap_create(int width, int height, unsigned int state)
bitmap->windib = windib;
bitmap->pbmi = pbmi;
bitmap->pixdata = pixdata;
bitmap->opaque = false;
if ((state & BITMAP_OPAQUE) != 0) {
bitmap->opaque = true;
} else {
bitmap->opaque = false;
}
LOG(("bitmap %p", bitmap));