Fix compiling calls to CopyBits() in C++17
Template arguments can't be narrowed, so use the correct type for them instead of "int" which is insufficient to hold UINT_MAX.
This commit is contained in:
parent
b389483c58
commit
c1ed2cf33f
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ DFBSurfacePixelFormat DepthToFormat(int depth)
|
|||
// is typically wxUint32 for RGB32, wxUint16 for RGB16 &c) as we don't need
|
||||
// access to the individual pixel components -- and so it's not suitable for
|
||||
// the pixel formats with pixel size not equal to 8, 16 or 32
|
||||
template <typename T, int White, int Black>
|
||||
template <typename T, T White, T Black>
|
||||
void
|
||||
CopyBits(int width,
|
||||
int height,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue