mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-10 02:02:30 +00:00
argb conversion
This commit is contained in:
parent
4c9e963346
commit
5e1fef98ec
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ namespace Cosmos.HAL.Drivers
|
|||
/// <returns>byte value.</returns>
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue