Searched hist:"6 f20778781492b124de90e5e0e5937ce6ab949e1" (Results 1 – 1 of 1) sorted by relevance
/haiku/src/kits/interface/ |
H A D | ControlLook.cpp | 6f20778781492b124de90e5e0e5937ce6ab949e1 Wed Dec 10 12:50:19 UTC 2014 Adrien Destugues <pulkomandy@gmail.com> ControlLook: fix DrawActiveTab with subpixel rectangle
Fixes #4078.
When font hinting is disabled, the width of a string may not be an integer number of pixels. This results in the tab position also being non-integer, and the drawing code doesn't handle this, resulting in part of the tab being shifted 1px to the right.
Snap the rectangle to the pixel grid so the runding error doesn't happen.
|