From 5e1fef98ec4ada76e90a5406da2fc9f2ce43bd94 Mon Sep 17 00:00:00 2001 From: valentinbreiz Date: Sat, 4 Jul 2020 20:24:44 +0200 Subject: [PATCH] argb conversion --- source/Cosmos.HAL2/Drivers/Video/VBEDriver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Cosmos.HAL2/Drivers/Video/VBEDriver.cs b/source/Cosmos.HAL2/Drivers/Video/VBEDriver.cs index 4d0939469..d9bf917df 100644 --- a/source/Cosmos.HAL2/Drivers/Video/VBEDriver.cs +++ b/source/Cosmos.HAL2/Drivers/Video/VBEDriver.cs @@ -225,7 +225,7 @@ namespace Cosmos.HAL.Drivers /// byte value. public uint GetVRAM(uint index) { - int pixel = (lastbuffer[index] << 24) | (lastbuffer[index + 1] << 16) | (lastbuffer[index + 2] << 8) | lastbuffer[index + 3]; + int pixel = (lastbuffer[index + 3] | (lastbuffer[index + 2] << 8) | (lastbuffer[index + 1] << 16) | lastbuffer[index] << 24); return (uint)pixel; }