From b03a97e0b86bd49111fffee22c5ab28c73d6d7bf Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Sun, 21 Dec 2014 02:48:15 +0100 Subject: citra-qt: Fix displaying RGBA5551 framebuffers. (not that it matters at the moment, because this code is not used yet) --- src/citra_qt/debugger/graphics_framebuffer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/citra_qt/debugger') 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*/)); } -- cgit v1.2.3