summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-02-23 03:04:10 +0100
committerbunnei <bunneidev@gmail.com>2015-02-23 03:04:10 +0100
commit131454ab3e89e27870e1add831677247c335ad45 (patch)
treed3fa82e266584ceb33bb791f805cb014864a5ab8 /src
parentMerge pull request #471 from archshift/pp3ports3 (diff)
parentGPU: Fixed RGBA8 as output format in a display transfer. (diff)
downloadyuzu-131454ab3e89e27870e1add831677247c335ad45.tar
yuzu-131454ab3e89e27870e1add831677247c335ad45.tar.gz
yuzu-131454ab3e89e27870e1add831677247c335ad45.tar.bz2
yuzu-131454ab3e89e27870e1add831677247c335ad45.tar.lz
yuzu-131454ab3e89e27870e1add831677247c335ad45.tar.xz
yuzu-131454ab3e89e27870e1add831677247c335ad45.tar.zst
yuzu-131454ab3e89e27870e1add831677247c335ad45.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hw/gpu.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index 880023529..e6022d69f 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -167,16 +167,15 @@ inline void Write(u32 addr, const T data) {
}
switch (config.output_format) {
- /*case Regs::PixelFormat::RGBA8:
+ case Regs::PixelFormat::RGBA8:
{
- // TODO: Untested
- u8* dstptr = (u32*)(dest_pointer + x * 4 + y * config.output_width * 4);
- dstptr[0] = source_color.r;
- dstptr[1] = source_color.g;
- dstptr[2] = source_color.b;
- dstptr[3] = source_color.a;
+ u8* dstptr = dest_pointer + (x * pixel_skip + y * config.output_width) * 4;
+ dstptr[3] = source_color.r;
+ dstptr[2] = source_color.g;
+ dstptr[1] = source_color.b;
+ dstptr[0] = source_color.a;
break;
- }*/
+ }
case Regs::PixelFormat::RGB8:
{