diff options
Diffstat (limited to 'src/core/hw/gpu.cpp')
| -rw-r--r-- | src/core/hw/gpu.cpp | 15 |
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) { | |||
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | switch (config.output_format) { | 169 | switch (config.output_format) { |
| 170 | /*case Regs::PixelFormat::RGBA8: | 170 | case Regs::PixelFormat::RGBA8: |
| 171 | { | 171 | { |
| 172 | // TODO: Untested | 172 | u8* dstptr = dest_pointer + (x * pixel_skip + y * config.output_width) * 4; |
| 173 | u8* dstptr = (u32*)(dest_pointer + x * 4 + y * config.output_width * 4); | 173 | dstptr[3] = source_color.r; |
| 174 | dstptr[0] = source_color.r; | 174 | dstptr[2] = source_color.g; |
| 175 | dstptr[1] = source_color.g; | 175 | dstptr[1] = source_color.b; |
| 176 | dstptr[2] = source_color.b; | 176 | dstptr[0] = source_color.a; |
| 177 | dstptr[3] = source_color.a; | ||
| 178 | break; | 177 | break; |
| 179 | }*/ | 178 | } |
| 180 | 179 | ||
| 181 | case Regs::PixelFormat::RGB8: | 180 | case Regs::PixelFormat::RGB8: |
| 182 | { | 181 | { |