Direct2D platform plugin: Fix developer build with MSVC2015
Fix error: qwindowsdirect2dbitmap.cpp(84): error C2220: warning treated as error - no 'object' file generated qwindowsdirect2dbitmap.cpp(84): warning C4838: conversion from 'int' to 'UINT32' requires a narrowing conversion Change-Id: I191f3300cd22715001eebc113b672ceac49c825d Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>bb10
parent
5d691922d8
commit
dd7bf4b4c1
|
|
@ -80,7 +80,7 @@ public:
|
|||
bitmap.Reset();
|
||||
|
||||
D2D1_SIZE_U size = {
|
||||
width, height
|
||||
UINT32(width), UINT32(height)
|
||||
};
|
||||
|
||||
HRESULT hr = deviceContext->get()->CreateBitmap(size, data, pitch,
|
||||
|
|
|
|||
Loading…
Reference in New Issue