From 631240da82a9580ecf1e45bbbed4bd18f27e499d Mon Sep 17 00:00:00 2001 From: rods Date: Wed, 10 Jun 1998 18:18:35 +0000 Subject: [PATCH] 24 bit color fix git-svn-id: svn://10.0.0.236/trunk@3604 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/motif/nsDeviceContextUnix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/gfx/src/motif/nsDeviceContextUnix.cpp b/mozilla/gfx/src/motif/nsDeviceContextUnix.cpp index 78ca4c695fb..80e4b8ccbef 100644 --- a/mozilla/gfx/src/motif/nsDeviceContextUnix.cpp +++ b/mozilla/gfx/src/motif/nsDeviceContextUnix.cpp @@ -244,7 +244,7 @@ PRUint32 nsDeviceContextUnix :: ConvertPixel(nscolor aColor) } if (mDepth == 24) { - newcolor = aColor; + newcolor = aColor & 0x00ffffff; } return (newcolor);