Fix overscan mask being half as thick as it should be

The percent values used for the overscan masks follow the BBC's
guidelines, as in
https://en.wikipedia.org/wiki/Overscan#Overscan_amounts .
However, these measure the per-side width as opposed to the total
percentage of width/height being cut off. Thus, they should not be
divided by two when drawing the mask.
This commit is contained in:
arch1t3cht 2022-11-02 21:50:01 +01:00
parent 04ccc15fd4
commit 2ee6f6e904
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ catch (const agi::Exception &err) {
void VideoDisplay::DrawOverscanMask(float horizontal_percent, float vertical_percent) const {
Vector2D v = Vector2D(viewport_width, viewport_height) / scale_factor;
Vector2D size = Vector2D(horizontal_percent, vertical_percent) / 2 * v;
Vector2D size = Vector2D(horizontal_percent, vertical_percent) * v;
// Clockwise from top-left
Vector2D corners[] = {