mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-06-26 20:51:49 +02:00
Fix depth sanity test in PixelFormat
This commit is contained in:
parent
1224cbdc21
commit
9f7abaea3a
@ -678,7 +678,7 @@ bool PixelFormat::isSane(void)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
totalBits = bits(redMax) + bits(greenMax) + bits(blueMax);
|
totalBits = bits(redMax) + bits(greenMax) + bits(blueMax);
|
||||||
if (totalBits > bpp)
|
if (totalBits > depth)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (((redMax << redShift) & (greenMax << greenShift)) != 0)
|
if (((redMax << redShift) & (greenMax << greenShift)) != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user