mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-21 23:53:24 +01: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;
|
||||
|
||||
totalBits = bits(redMax) + bits(greenMax) + bits(blueMax);
|
||||
if (totalBits > bpp)
|
||||
if (totalBits > depth)
|
||||
return false;
|
||||
|
||||
if (((redMax << redShift) & (greenMax << greenShift)) != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user