From 6a45becd7ad3f68c56284f37f8e76b7c2a878ab4 Mon Sep 17 00:00:00 2001 From: "dcone%netscape.com" Date: Fri, 17 Sep 1999 14:14:17 +0000 Subject: [PATCH] Added 16 bit support for the DIB conversion --- gfx/src/windows/nsImageWin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/src/windows/nsImageWin.cpp b/gfx/src/windows/nsImageWin.cpp index 9394f4c6229..ee284e7e0fd 100644 --- a/gfx/src/windows/nsImageWin.cpp +++ b/gfx/src/windows/nsImageWin.cpp @@ -763,6 +763,8 @@ PRInt16 numPaletteColors; } else if (24 == aDepth) { numPaletteColors = 0; *aNumBytesPix = 3; + } else if (16 == aDepth) { + *aNumBytesPix = 2; } else { NS_ASSERTION(PR_FALSE, "unexpected image depth"); return NS_ERROR_UNEXPECTED;