aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/rasterizer.cpp
diff options
context:
space:
mode:
authorGravatar tfarley <tfarleygithub@gmail.com>2015-05-18 21:21:33 -0700
committerGravatar tfarley <tfarleygithub@gmail.com>2015-05-22 15:51:18 -0700
commit05dc633a8c35221ce8d6abe6ddf027f8b0bab6c2 (patch)
treed080c1efd3b928bda551cb9eee304547e66a4351 /src/video_core/rasterizer.cpp
parent6d995b1ff654483f830b6c285629545263393d7e (diff)
OpenGL renderer
Diffstat (limited to 'src/video_core/rasterizer.cpp')
-rw-r--r--src/video_core/rasterizer.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index 59eff48f..362efe52 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) {
u8* dst_pixel = Memory::GetPhysicalPointer(addr) + dst_offset;
switch (registers.framebuffer.color_format) {
- case registers.framebuffer.RGBA8:
+ case Pica::Regs::ColorFormat::RGBA8:
Color::EncodeRGBA8(color, dst_pixel);
break;
- case registers.framebuffer.RGB8:
+ case Pica::Regs::ColorFormat::RGB8:
Color::EncodeRGB8(color, dst_pixel);
break;
- case registers.framebuffer.RGB5A1:
+ case Pica::Regs::ColorFormat::RGB5A1:
Color::EncodeRGB5A1(color, dst_pixel);
break;
- case registers.framebuffer.RGB565:
+ case Pica::Regs::ColorFormat::RGB565:
Color::EncodeRGB565(color, dst_pixel);
break;
- case registers.framebuffer.RGBA4:
+ case Pica::Regs::ColorFormat::RGBA4:
Color::EncodeRGBA4(color, dst_pixel);
break;
@@ -73,19 +73,19 @@ static const Math::Vec4<u8> GetPixel(int x, int y) {
u8* src_pixel = Memory::GetPhysicalPointer(addr) + src_offset;
switch (registers.framebuffer.color_format) {
- case registers.framebuffer.RGBA8:
+ case Pica::Regs::ColorFormat::RGBA8:
return Color::DecodeRGBA8(src_pixel);
- case registers.framebuffer.RGB8:
+ case Pica::Regs::ColorFormat::RGB8:
return Color::DecodeRGB8(src_pixel);
- case registers.framebuffer.RGB5A1:
+ case Pica::Regs::ColorFormat::RGB5A1:
return Color::DecodeRGB5A1(src_pixel);
- case registers.framebuffer.RGB565:
+ case Pica::Regs::ColorFormat::RGB565:
return Color::DecodeRGB565(src_pixel);
- case registers.framebuffer.RGBA4:
+ case Pica::Regs::ColorFormat::RGBA4:
return Color::DecodeRGBA4(src_pixel);
default: