mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-22 12:04:38 +00:00
fixing image rendering color problems on photon. bug 82537. patch from briane@qnx.com. r=pavlov sr=blizzard a=asa
This commit is contained in:
parent
fb5cea14ff
commit
2e739a30aa
@ -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];
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user