Implement RGB565 Framebuffer format

This commit is contained in:
greggameplayer
2019-01-12 16:45:18 +01:00
parent f6e998f6ad
commit 865387f3c3
5 changed files with 28 additions and 17 deletions
+2
View File
@@ -18,6 +18,8 @@ u32 FramebufferConfig::BytesPerPixel(PixelFormat format) {
case PixelFormat::ABGR8:
case PixelFormat::BGRA8:
return 4;
case PixelFormat::RGB565:
return 2;
default:
return 4;
}