From 56f85215f9c14683ca04a503cd53495dbb2b0959 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 2 Jan 2004 20:11:03 +0000 Subject: [PATCH] Set the "bytes per scan line" field when generating the mode info block. --- dlls/winedos/int10.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winedos/int10.c b/dlls/winedos/int10.c index 410765b449..b78acb347d 100644 --- a/dlls/winedos/int10.c +++ b/dlls/winedos/int10.c @@ -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; -- 2.32.0.93.g670b81a890