summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-12-21 02:48:15 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2014-12-31 15:33:09 +0100
commitb03a97e0b86bd49111fffee22c5ab28c73d6d7bf (patch)
tree3b5b9b7052789149d4d9d3ab0560a1a203dfa21d /src
parentcitra-qt: Always show pica framebuffers as RGBA8. (diff)
downloadyuzu-b03a97e0b86bd49111fffee22c5ab28c73d6d7bf.tar
yuzu-b03a97e0b86bd49111fffee22c5ab28c73d6d7bf.tar.gz
yuzu-b03a97e0b86bd49111fffee22c5ab28c73d6d7bf.tar.bz2
yuzu-b03a97e0b86bd49111fffee22c5ab28c73d6d7bf.tar.lz
yuzu-b03a97e0b86bd49111fffee22c5ab28c73d6d7bf.tar.xz
yuzu-b03a97e0b86bd49111fffee22c5ab28c73d6d7bf.tar.zst
yuzu-b03a97e0b86bd49111fffee22c5ab28c73d6d7bf.zip
Diffstat (limited to 'src')
-rw-r--r--src/citra_qt/debugger/graphics_framebuffer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics_framebuffer.cpp b/src/citra_qt/debugger/graphics_framebuffer.cpp
index 28d5519fb..4a45027b8 100644
--- a/src/citra_qt/debugger/graphics_framebuffer.cpp
+++ b/src/citra_qt/debugger/graphics_framebuffer.cpp
@@ -263,6 +263,10 @@ void GraphicsFramebufferWidget::OnUpdate()
u8 g = (value >> 6) & 0x1F;
u8 b = (value >> 1) & 0x1F;
u8 a = value & 1;
+ r = (r << 3) | (r >> 2);
+ g = (g << 3) | (g >> 2);
+ b = (b << 3) | (b >> 2);
+ a *= 255;
decoded_image.setPixel(x, y, qRgba(r, g, b, 255/*a*/));
}