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; }