diff options
Diffstat (limited to 'src/video_core/rasterizer.cpp')
| -rw-r--r-- | src/video_core/rasterizer.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp index 59eff48f9..362efe52e 100644 --- a/src/video_core/rasterizer.cpp +++ b/src/video_core/rasterizer.cpp | |||
| @@ -36,23 +36,23 @@ static void DrawPixel(int x, int y, const Math::Vec4<u8>& color) { | |||
| 36 | u8* dst_pixel = Memory::GetPhysicalPointer(addr) + dst_offset; | 36 | u8* dst_pixel = Memory::GetPhysicalPointer(addr) + dst_offset; |
| 37 | 37 | ||
| 38 | switch (registers.framebuffer.color_format) { | 38 | switch (registers.framebuffer.color_format) { |
| 39 | case registers.framebuffer.RGBA8: | 39 | case Pica::Regs::ColorFormat::RGBA8: |
| 40 | Color::EncodeRGBA8(color, dst_pixel); | 40 | Color::EncodeRGBA8(color, dst_pixel); |
| 41 | break; | 41 | break; |
| 42 | 42 | ||
| 43 | case registers.framebuffer.RGB8: | 43 | case Pica::Regs::ColorFormat::RGB8: |
| 44 | Color::EncodeRGB8(color, dst_pixel); | 44 | Color::EncodeRGB8(color, dst_pixel); |
| 45 | break; | 45 | break; |
| 46 | 46 | ||
| 47 | case registers.framebuffer.RGB5A1: | 47 | case Pica::Regs::ColorFormat::RGB5A1: |
| 48 | Color::EncodeRGB5A1(color, dst_pixel); | 48 | Color::EncodeRGB5A1(color, dst_pixel); |
| 49 | break; | 49 | break; |
| 50 | 50 | ||
| 51 | case registers.framebuffer.RGB565: | 51 | case Pica::Regs::ColorFormat::RGB565: |
| 52 | Color::EncodeRGB565(color, dst_pixel); | 52 | Color::EncodeRGB565(color, dst_pixel); |
| 53 | break; | 53 | break; |
| 54 | 54 | ||
| 55 | case registers.framebuffer.RGBA4: | 55 | case Pica::Regs::ColorFormat::RGBA4: |
| 56 | Color::EncodeRGBA4(color, dst_pixel); | 56 | Color::EncodeRGBA4(color, dst_pixel); |
| 57 | break; | 57 | break; |
| 58 | 58 | ||
| @@ -73,19 +73,19 @@ static const Math::Vec4<u8> GetPixel(int x, int y) { | |||
| 73 | u8* src_pixel = Memory::GetPhysicalPointer(addr) + src_offset; | 73 | u8* src_pixel = Memory::GetPhysicalPointer(addr) + src_offset; |
| 74 | 74 | ||
| 75 | switch (registers.framebuffer.color_format) { | 75 | switch (registers.framebuffer.color_format) { |
| 76 | case registers.framebuffer.RGBA8: | 76 | case Pica::Regs::ColorFormat::RGBA8: |
| 77 | return Color::DecodeRGBA8(src_pixel); | 77 | return Color::DecodeRGBA8(src_pixel); |
| 78 | 78 | ||
| 79 | case registers.framebuffer.RGB8: | 79 | case Pica::Regs::ColorFormat::RGB8: |
| 80 | return Color::DecodeRGB8(src_pixel); | 80 | return Color::DecodeRGB8(src_pixel); |
| 81 | 81 | ||
| 82 | case registers.framebuffer.RGB5A1: | 82 | case Pica::Regs::ColorFormat::RGB5A1: |
| 83 | return Color::DecodeRGB5A1(src_pixel); | 83 | return Color::DecodeRGB5A1(src_pixel); |
| 84 | 84 | ||
| 85 | case registers.framebuffer.RGB565: | 85 | case Pica::Regs::ColorFormat::RGB565: |
| 86 | return Color::DecodeRGB565(src_pixel); | 86 | return Color::DecodeRGB565(src_pixel); |
| 87 | 87 | ||
| 88 | case registers.framebuffer.RGBA4: | 88 | case Pica::Regs::ColorFormat::RGBA4: |
| 89 | return Color::DecodeRGBA4(src_pixel); | 89 | return Color::DecodeRGBA4(src_pixel); |
| 90 | 90 | ||
| 91 | default: | 91 | default: |