View | Details | Raw Unified | Return to issue 127433
Collapse All | Expand All

(-)basebmp/inc/basebmp/packedpixeliterator.hxx.ori (-1 / +1 lines)
Lines 608-614 Link Here
608
608
609
    value_type get(difference_type const & d) const
609
    value_type get(difference_type const & d) const
610
    {
610
    {
611
        const int remainder( x(d.x) % num_intraword_positions );
611
        const int remainder( (x*(d.x)) % num_intraword_positions );
612
612
613
        return (unsigned_cast<value_type>(*current(d.x,d.y) & 
613
        return (unsigned_cast<value_type>(*current(d.x,d.y) & 
614
                                          get_mask<value_type, bits_per_pixel, MsbFirst>(remainder))
614
                                          get_mask<value_type, bits_per_pixel, MsbFirst>(remainder))

Return to issue 127433