mirror of
https://github.com/reactos/wine.git
synced 2025-01-31 00:53:00 +00:00
Set the "bytes per scan line" field when generating the mode info
block.
This commit is contained in:
parent
8cea7b64c4
commit
56f85215f9
@ -328,7 +328,8 @@ static BOOL INT10_FillModeInformation( BYTE *buffer, WORD mode )
|
||||
*(DWORD*)(buffer + 12) = 0; /* not supported */
|
||||
|
||||
/* 16 - WORD: bytes per scan line */
|
||||
*(WORD*)(buffer + 16) = 0; /* FIXME */
|
||||
/* FIXME: is this always correct? */
|
||||
*(WORD*)(buffer + 16) = ptr->Width * (ptr->Depth ? (ptr->Depth + 7) / 8 : 1);
|
||||
|
||||
/* 18 - WORD: width in pixels (graphics) or characters (text) */
|
||||
*(WORD*)(buffer + 18) = ptr->Width;
|
||||
|
Loading…
x
Reference in New Issue
Block a user