fixing image rendering color problems on photon. bug 82537. patch from briane@qnx.com. r=pavlov sr=blizzard a=asa

git-svn-id: svn://10.0.0.236/trunk@97022 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%netscape.com
2001-06-13 01:14:13 +00:00
parent 463551e501
commit ff3e01c389
3 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@
Includes dithering for B&W displays, but not dithering
for PseudoColor displays which can be found in dither.c.
$Id: color.cpp,v 3.17 2001-01-10 06:12:10 jgmyers%netscape.com Exp $
$Id: color.cpp,v 3.18 2001-06-13 01:13:35 pavlov%netscape.com Exp $
*/
@@ -518,7 +518,7 @@ ConvertRGBToRGB24(il_container *ic,
if (!mask)
{
while (sp < end) {
#if !defined(XP_UNIX) || defined(NTO)
#if !defined(XP_UNIX) || defined(MOZ_WIDGET_PHOTON)
out[2] = sp[0];
out[1] = sp[1];
out[0] = sp[2];
@@ -534,7 +534,7 @@ ConvertRGBToRGB24(il_container *ic,
while (sp < end) {
if (*mask++)
{
#if !defined(XP_UNIX) || defined(NTO)
#if !defined(XP_UNIX) || defined(MOZ_WIDGET_PHOTON)
out[2] = sp[0];
out[1] = sp[1];
out[0] = sp[2];

View File

@@ -2071,7 +2071,7 @@ NS_IMETHODIMP nsPluginHostImpl::GetValue(nsPluginManagerVariable aVariable, void
NS_ENSURE_ARG_POINTER(aValue);
#if defined(XP_UNIX) && !defined(MACOSX)
#if defined(XP_UNIX) && !defined(MACOSX) && !defined(NO_X11)
if (nsPluginManagerVariable_XDisplay == aVariable) {
Display** value = NS_REINTERPRET_CAST(Display**, aValue);
#if defined(MOZ_WIDGET_GTK)

View File

@@ -2071,7 +2071,7 @@ NS_IMETHODIMP nsPluginHostImpl::GetValue(nsPluginManagerVariable aVariable, void
NS_ENSURE_ARG_POINTER(aValue);
#if defined(XP_UNIX) && !defined(MACOSX)
#if defined(XP_UNIX) && !defined(MACOSX) && !defined(NO_X11)
if (nsPluginManagerVariable_XDisplay == aVariable) {
Display** value = NS_REINTERPRET_CAST(Display**, aValue);
#if defined(MOZ_WIDGET_GTK)