SetBytesPerLine

Allows the pixel stride of the display mode to be changed

Declaration

ibool GA_VBEFuncs::SetBytesPerLine(
    int bytesPerLine,
    int *newBytes)

Prototype In

snap/graphics.h

Parameters

bytesPerLine

Requested scanline pitch to set

newBytes

Place to store actual scanline pitch set

 

Description

This function allows the display stride to be changed after the mode has been initialised. Note that this will only work reliabley if the mode was initialised with the gaNoAccel flag, to ensure that the hardware accelerator is not active. This primary use of this function is to allow emulation of VESA VBE/Core functions on top of native SNAP drivers (ie: DOS box support in Windows etc).

See Also

Set8BitDAC, SetPaletteData, GetPaletteData

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com