From 7a28131e4953934150967eb7886bc06678e249e8 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 12 Apr 2015 22:45:32 +0100 Subject: 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. --- windows/bitmap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)); -- cgit v1.2.3