Skip to content

Conversation

linev
Copy link
Member

@linev linev commented Oct 16, 2025

Conversion methods to/from pixel in TVirtualPad now provided with double

Use these methods in TLatex for transformation. Especially due to rotation double precision let keep original coordiantes

linev added 8 commits October 16, 2025 08:16
Allows convert into pixel coordinates without rounding. It is crucial for different painting when further coordinates calculations are applied and resulted coordinate may differ on different platforms because of used rounding
There are several methods where produced value checked for
valid pixel range
Let produce text coordinates more precise
Replace y++ by +1 to be clear with double arithmetic
Replace int by double to let avoid rounding conversion failures
While for small fonts such rounding can have significant drawback
Define generic `Rotate` method to rotate N points
Provide specialization for single point
Use `TVirtualPad *` in arguments to making first step out
of using of global pad pointer in painter.
in stressGraphics.ref and roottest/root/treedraw/hsimple.ps.ref
Copy link

Test Results

    22 files      22 suites   3d 20h 8m 21s ⏱️
 3 692 tests  3 645 ✅ 0 💤 47 ❌
79 267 runs  79 170 ✅ 0 💤 97 ❌

For more details on these failures, see this check.

Results for commit ca8f9cd.

@linev
Copy link
Member Author

linev commented Oct 16, 2025

All failed tests do not use graphics

@linev linev merged commit e5d8135 into root-project:master Oct 16, 2025
18 of 27 checks passed
@linev linev deleted the pad_float_pixel branch October 16, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants