зеркало из https://github.com/mozilla/pjs.git
Fix image dragging corruption on BeOS and remove redundant code.
Thanks to Stuart Parmenter <pavlov@netscape.com> for the patch. Bug #178614 r=cls sr=bzbarsky
This commit is contained in:
Родитель
b74e9681f6
Коммит
293ba398e1
|
@ -356,14 +356,10 @@ SelectionImageService::CreateImage(nscolor aImageColor, imgIContainer *aContaine
|
|||
*data++ = NS_GET_B(aImageColor);
|
||||
*data++ = NS_GET_G(aImageColor);
|
||||
*data++ = NS_GET_R(aImageColor);
|
||||
#endif
|
||||
#if defined(XP_UNIX) && !defined(XP_MACOSX)
|
||||
*data++ = NS_GET_R(aImageColor);
|
||||
*data++ = NS_GET_G(aImageColor);
|
||||
*data++ = NS_GET_B(aImageColor);
|
||||
#endif
|
||||
#else
|
||||
#if defined(XP_MAC) || defined(XP_MACOSX)
|
||||
*data++ = 0;
|
||||
#endif
|
||||
*data++ = NS_GET_R(aImageColor);
|
||||
*data++ = NS_GET_G(aImageColor);
|
||||
*data++ = NS_GET_B(aImageColor);
|
||||
|
|
|
@ -356,14 +356,10 @@ SelectionImageService::CreateImage(nscolor aImageColor, imgIContainer *aContaine
|
|||
*data++ = NS_GET_B(aImageColor);
|
||||
*data++ = NS_GET_G(aImageColor);
|
||||
*data++ = NS_GET_R(aImageColor);
|
||||
#endif
|
||||
#if defined(XP_UNIX) && !defined(XP_MACOSX)
|
||||
*data++ = NS_GET_R(aImageColor);
|
||||
*data++ = NS_GET_G(aImageColor);
|
||||
*data++ = NS_GET_B(aImageColor);
|
||||
#endif
|
||||
#else
|
||||
#if defined(XP_MAC) || defined(XP_MACOSX)
|
||||
*data++ = 0;
|
||||
#endif
|
||||
*data++ = NS_GET_R(aImageColor);
|
||||
*data++ = NS_GET_G(aImageColor);
|
||||
*data++ = NS_GET_B(aImageColor);
|
||||
|
|
Загрузка…
Ссылка в новой задаче