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:
Vadim Zeitlin 2023-10-24 01:22:17 +02:00
parent b389483c58
commit c1ed2cf33f

View file

@ -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,