mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-22 16:09:10 +08:00
Fix xBRZ output code to use sdl.clip rect rather than recompute destination rectangle
This commit is contained in:
@@ -3653,11 +3653,12 @@ void GFX_EndUpdate( const Bit16u *changedLines ) {
|
|||||||
// we assume render buffer is *not* scaled!
|
// we assume render buffer is *not* scaled!
|
||||||
const int outputHeight = sdl.surface->h;
|
const int outputHeight = sdl.surface->h;
|
||||||
const int outputWidth = sdl.surface->w;
|
const int outputWidth = sdl.surface->w;
|
||||||
int clipWidth = outputWidth;
|
int clipWidth = sdl.clip.w;
|
||||||
int clipHeight = outputHeight;
|
int clipHeight = sdl.clip.h;
|
||||||
int clipX = 0;
|
int clipX = sdl.clip.x;
|
||||||
int clipY = 0;
|
int clipY = sdl.clip.y;
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (render.aspect) {
|
if (render.aspect) {
|
||||||
if (outputWidth > sdl.srcAspect.xToY * outputHeight) // output broader than input => black bars left and right
|
if (outputWidth > sdl.srcAspect.xToY * outputHeight) // output broader than input => black bars left and right
|
||||||
{
|
{
|
||||||
@@ -3670,6 +3671,7 @@ void GFX_EndUpdate( const Bit16u *changedLines ) {
|
|||||||
clipY = (outputHeight - clipHeight) / 2;
|
clipY = (outputHeight - clipHeight) / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// 1. xBRZ-scale render buffer into xbrz pixel buffer
|
// 1. xBRZ-scale render buffer into xbrz pixel buffer
|
||||||
int xbrzWidth = 0;
|
int xbrzWidth = 0;
|
||||||
|
Reference in New Issue
Block a user