summaryrefslogtreecommitdiff
path: root/src/citra_qt/debugger/graphics_framebuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/citra_qt/debugger/graphics_framebuffer.cpp')
-rw-r--r--src/citra_qt/debugger/graphics_framebuffer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/citra_qt/debugger/graphics_framebuffer.cpp b/src/citra_qt/debugger/graphics_framebuffer.cpp
index d621d7204..0c1a3f47f 100644
--- a/src/citra_qt/debugger/graphics_framebuffer.cpp
+++ b/src/citra_qt/debugger/graphics_framebuffer.cpp
@@ -10,6 +10,8 @@
10#include <QSpinBox> 10#include <QSpinBox>
11 11
12#include "core/hw/gpu.h" 12#include "core/hw/gpu.h"
13#include "core/memory.h"
14
13#include "video_core/color.h" 15#include "video_core/color.h"
14#include "video_core/pica.h" 16#include "video_core/pica.h"
15#include "video_core/utils.h" 17#include "video_core/utils.h"
@@ -215,7 +217,7 @@ void GraphicsFramebufferWidget::OnUpdate()
215 u32 bytes_per_pixel = GraphicsFramebufferWidget::BytesPerPixel(framebuffer_format); 217 u32 bytes_per_pixel = GraphicsFramebufferWidget::BytesPerPixel(framebuffer_format);
216 218
217 QImage decoded_image(framebuffer_width, framebuffer_height, QImage::Format_ARGB32); 219 QImage decoded_image(framebuffer_width, framebuffer_height, QImage::Format_ARGB32);
218 u8* buffer = Memory::GetPointer(Pica::PAddrToVAddr(framebuffer_address)); 220 u8* buffer = Memory::GetPhysicalPointer(framebuffer_address);
219 221
220 for (unsigned int y = 0; y < framebuffer_height; ++y) { 222 for (unsigned int y = 0; y < framebuffer_height; ++y) {
221 for (unsigned int x = 0; x < framebuffer_width; ++x) { 223 for (unsigned int x = 0; x < framebuffer_width; ++x) {