Skip to content

[Screen Ruler] PixelsClose total-mode truncates diff via & 0xFF #46946

@crutkas

Description

@crutkas

Bug

PixelsClose<false> in BGRATextureView.h masks SAD result with & 0xFF. Total diff >255 wraps around (765→253), making very-different pixels appear close.
Fix: Use & 0xFFFF or remove mask.
Found by AI test review fleet

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't workingProduct-Screen RulerRefers to the Screen Ruler PowerToy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions