[Poppler-bugs] [Bug 9386] New: Incorrect gray calculation in SplashOutputDev::setFillColor

bugzilla-daemon at annarchy.freedesktop.org bugzilla-daemon at annarchy.freedesktop.org
Mon Dec 18 14:00:48 PST 2006


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=9386          
     
           Summary: Incorrect gray calculation in
                    SplashOutputDev::setFillColor
           Product: poppler
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: splash backend
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: scotty1024 at mac.com


In SplashOutputDev.cc in method void SplashOutputDev::setFillColor(int r, int g, int b) 

  gray = (GfxColorComp)(0.299 * rgb.r + 0.587 * rgb.g + 0.114 * rgb.g + 0.5);

Should be:

  gray = (GfxColorComp)(0.299 * rgb.r + 0.587 * rgb.g + 0.114 * rgb.r + 0.5);

This leads to an incorrectly calculated grey value, which is only really annoying on a grey scale device such 
as an iRex iLiad.          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Poppler-bugs mailing list