Hi,
Building recent Qt (5.8 branch) fails due to missing BitmapBrushProperties1 
function. Proposed patch below:
From df6c26224d796ce5df425ee907b34cd7fb013ae0 Mon Sep 17 00:00:00 2001
From: Petri Hodju <petriho...@yahoo.com>
Date: Wed, 30 Nov 2016 15:48:43 +0200
Subject: [PATCH] d2d1_1helper.h: Add missing BitmapBrushProperties1 function

---
 mingw-w64-headers/include/d2d1_1helper.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/mingw-w64-headers/include/d2d1_1helper.h 
b/mingw-w64-headers/include/d2d1_1helper.h
index 54c6539..69a4da8 100644
--- a/mingw-w64-headers/include/d2d1_1helper.h
+++ b/mingw-w64-headers/include/d2d1_1helper.h
@@ -43,6 +43,13 @@ namespace D2D1 {
         return r;
     }
 
+    D2D1FORCEINLINE D2D1_BITMAP_BRUSH_PROPERTIES1 
BitmapBrushProperties1(D2D1_EXTEND_MODE extendmodeX = D2D1_
EXTEND_MODE_CLAMP,
+            D2D1_EXTEND_MODE extendmodeY = D2D1_EXTEND_MODE_CLAMP,
+            D2D1_INTERPOLATION_MODE interpolationMode = 
D2D1_INTERPOLATION_MODE_LINEAR) {
+        D2D1_BITMAP_BRUSH_PROPERTIES1 r = {extendmodeX, extendmodeY, 
interpolationMode};
+        return r;
+    }
+
     class Matrix5x4F : public D2D1_MATRIX_5X4_F {
     public:
         inline Matrix5x4F(
-- 
2.9.3

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to