mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 17:22:44 +03:00
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:
parent
4133154215
commit
7a28131e49
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user