Some code cleanup.

This commit is contained in:
Tony Wasserka 2014-12-04 19:41:03 +01:00
parent 55ce9aca71
commit 0cd27a511e
8 changed files with 66 additions and 67 deletions

View file

@ -217,11 +217,11 @@ void GraphicsFramebufferWidget::OnUpdate()
break;
}
// TODO: Implement a good way to visualize alpha components!
// TODO: Unify this decoding code with the texture decoder
switch (framebuffer_format) {
case Format::RGBA8:
{
// TODO: Implement a good way to visualize the alpha component
QImage decoded_image(framebuffer_width, framebuffer_height, QImage::Format_ARGB32);
u32* color_buffer = (u32*)Memory::GetPointer(framebuffer_address);
for (int y = 0; y < framebuffer_height; ++y) {