summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-04-12 22:45:32 +0100
committerVincent Sanders <vince@kyllikki.org>2015-04-12 22:45:32 +0100
commit7a28131e4953934150967eb7886bc06678e249e8 (patch)
treeecd23c2b4c1a7310af78210ac2c1d10b715b3510 /windows
parent41331542154594970fb6c36bc1c147c244fe9279 (diff)
downloadnetsurf-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.
Diffstat (limited to 'windows')
-rw-r--r--windows/bitmap.c6
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));