diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/savage_video.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/savage_video.c b/src/savage_video.c index 9f860c7..7d571ad 100644 --- a/src/savage_video.c +++ b/src/savage_video.c @@ -1508,9 +1508,13 @@ SavageDisplayVideoOld( drw_h = (float)(drw_h * psav->YExp1)/(float)psav->YExp2+1; dstBox->x1 = (float)(dstBox->x1 * psav->XExp1)/(float)psav->XExp2; dstBox->y1 = (float)(dstBox->y1 * psav->YExp1)/(float)psav->YExp2; + dstBox->x2 = (dstBox->x2 * psav->XExp1) / psav->XExp2; + dstBox->y2 = (dstBox->y2 * psav->YExp1) / psav->YExp2; dstBox->x1 += psav->displayXoffset; dstBox->y1 += psav->displayYoffset; + dstBox->x2 += psav->displayXoffset; + dstBox->y2 += psav->displayYoffset; } /* @@ -1668,8 +1672,12 @@ SavageDisplayVideoNew( drw_h = (drw_h * psav->YExp1)/psav->YExp2 + 1; dstBox->x1 = (dstBox->x1 * psav->XExp1)/psav->XExp2; dstBox->y1 = (dstBox->y1 * psav->YExp1)/psav->YExp2; + dstBox->x2 = (dstBox->x2 * psav->XExp1) / psav->XExp2; + dstBox->y2 = (dstBox->y2 * psav->YExp1) / psav->YExp2; dstBox->x1 += psav->displayXoffset; dstBox->y1 += psav->displayYoffset; + dstBox->x2 += psav->displayXoffset; + dstBox->y2 += psav->displayYoffset; } if (psav->IsSecondary) { |