diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-04-12 22:45:32 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-04-12 22:45:32 +0100 |
commit | 7a28131e4953934150967eb7886bc06678e249e8 (patch) | |
tree | ecd23c2b4c1a7310af78210ac2c1d10b715b3510 | |
parent | 41331542154594970fb6c36bc1c147c244fe9279 (diff) | |
download | netsurf-7a28131e4953934150967eb7886bc06678e249e8.tar.gz netsurf-7a28131e4953934150967eb7886bc06678e249e8.tar.bz2 |
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.
-rw-r--r-- | windows/bitmap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/windows/bitmap.c b/windows/bitmap.c index a12fc2dc0..c047e1704 100644 --- a/windows/bitmap.c +++ b/windows/bitmap.c @@ -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)); |