Vincent Povirk madewokherd@gmail.com wrote:
case 32:
format = PixelFormat32bppRGB;
if (bm.bmBits)format = PixelFormat32bppPARGB;elseformat = PixelFormat32bppRGB;
Besides the test failure, to my eyes
format = bm.bmBits ? PixelFormat32bppPARGB : PixelFormat32bppRGB;
looks shorter and clearer.