narke wrote:
LinBytesPerScanLine is same as pitch? Am I right? I saw
http://wiki.osdev.org/VESA_Video_ModesYes, it is generally referred to as pitch, I used the names as they appear in
this document (see page 30 for the ModeInfoBlock struct) because there are multiple fields that could be called 'pitch'.
Note that the value defined as 'pitch' in that wiki article is actually BytesPerScanLine, not LinBytesPerScanLine. To quote the document (page 38):
Quote:
The LinBytesPerScanLine field specifies how many full bytes are in each logical scanline for linear framebuffer modes if the linear framebuffer modes are different to the banked modes. (...) VBE 3.0 applications should look at this value for linear modes, as it is possible for the linear modes to have a different logical scanline width than the banked modes.
So BytesPerScanLine might work for some linear modes, LinBytesPerScanLine works for all linear modes.