Skip to content
Snippets Groups Projects
Commit b5bb1f87 authored by Johannes Baiter's avatar Johannes Baiter Committed by Chris Beer
Browse files

Fix annotation rendering when OSD has viewport margin.

When users configure a viewport margin for OSD (via
`osdConfig.viewportMargins`), annotation rendering would be broken,
since the `osd.viewport.getBoundsNoRottate()` call to get the viewport
boundary would return the viewport *without* the margin, which would
lead to wrong calculations down the line.
The fix is to simply call `osd.viewport.getBoundsNoRotateWithMargins`
instead to obtain the correct full viewport size.
parent 78460561
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment