summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorFeng Chen <vonchenplus@gmail.com>2023-06-16 11:45:15 +0200
committerFengChen <vonchenplus@gmail.com>2023-06-16 14:51:15 +0200
commitb77a247e8cffbe062e0f6f568f6486220414756e (patch)
tree6212ec931645bdb3cd89258ba624177ff24df7f7 /src/video_core
parentMerge pull request #10739 from zeltermann/sdl-cpuinfo (diff)
downloadyuzu-b77a247e8cffbe062e0f6f568f6486220414756e.tar
yuzu-b77a247e8cffbe062e0f6f568f6486220414756e.tar.gz
yuzu-b77a247e8cffbe062e0f6f568f6486220414756e.tar.bz2
yuzu-b77a247e8cffbe062e0f6f568f6486220414756e.tar.lz
yuzu-b77a247e8cffbe062e0f6f568f6486220414756e.tar.xz
yuzu-b77a247e8cffbe062e0f6f568f6486220414756e.tar.zst
yuzu-b77a247e8cffbe062e0f6f568f6486220414756e.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/engines/draw_manager.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/video_core/engines/draw_manager.cpp b/src/video_core/engines/draw_manager.cpp
index 0e94c521a..f34090791 100644
--- a/src/video_core/engines/draw_manager.cpp
+++ b/src/video_core/engines/draw_manager.cpp
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "common/settings.h"
#include "video_core/dirty_flags.h"
#include "video_core/engines/draw_manager.h"
#include "video_core/rasterizer_interface.h"
@@ -195,8 +196,12 @@ void DrawManager::DrawTexture() {
if (lower_left) {
draw_texture_state.dst_y0 -= dst_height;
}
- draw_texture_state.dst_x1 = draw_texture_state.dst_x0 + dst_width;
- draw_texture_state.dst_y1 = draw_texture_state.dst_y0 + dst_height;
+ draw_texture_state.dst_x1 =
+ draw_texture_state.dst_x0 +
+ static_cast<f32>(Settings::values.resolution_info.ScaleUp(static_cast<u32>(dst_width)));
+ draw_texture_state.dst_y1 =
+ draw_texture_state.dst_y0 +
+ static_cast<f32>(Settings::values.resolution_info.ScaleUp(static_cast<u32>(dst_height)));
draw_texture_state.src_x0 = static_cast<float>(regs.draw_texture.src_x0) / 4096.f;
draw_texture_state.src_y0 = static_cast<float>(regs.draw_texture.src_y0) / 4096.f;
draw_texture_state.src_x1 =
@@ -207,7 +212,6 @@ void DrawManager::DrawTexture() {
draw_texture_state.src_y0;
draw_texture_state.src_sampler = regs.draw_texture.src_sampler;
draw_texture_state.src_texture = regs.draw_texture.src_texture;
-
maxwell3d->rasterizer->DrawTexture();
}