MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / PixelGridAlign

Function PixelGridAlign

scintilla/src/Indicator.cxx:21–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#endif
20
21static PRectangle PixelGridAlign(const PRectangle &rc) {
22 // Move left and right side to nearest pixel to avoid blurry visuals
23 return PRectangle(int(rc.left + 0.5), rc.top, int(rc.right + 0.5), rc.bottom);
24}
25
26void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine) {
27 surface->PenColour(fore);

Callers 1

DrawMethod · 0.85

Calls 1

PRectangleClass · 0.85

Tested by

no test coverage detected