win32 clipbaord: fix for BI_ALPHABITFIELDS narrow support
This commit is contained in:
parent
73cb1d5b64
commit
8d22bcfcad
2
src/external/win32_clipboard.h
vendored
2
src/external/win32_clipboard.h
vendored
|
|
@ -317,7 +317,9 @@ static int GetPixelDataOffset(BITMAPINFOHEADER bih)
|
||||||
// If (bih.biCompression == BI_RGB) no need to be offset more
|
// If (bih.biCompression == BI_RGB) no need to be offset more
|
||||||
|
|
||||||
if (bih.biCompression == BI_BITFIELDS) offset += 3*rgbaSize;
|
if (bih.biCompression == BI_BITFIELDS) offset += 3*rgbaSize;
|
||||||
|
#if defined(_WIN32_WCE) && _WIN32_WCE >= 0x0400 // BI_ALPHABITFIELDS is supported only on Windows CE 4.0+
|
||||||
else if (bih.biCompression == BI_ALPHABITFIELDS) offset += 4 * rgbaSize; // Not widely supported, but valid
|
else if (bih.biCompression == BI_ALPHABITFIELDS) offset += 4 * rgbaSize; // Not widely supported, but valid
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user