1vga_setmodeX(3)               Svgalib User Manual              vga_setmodeX(3)
2
3
4

NAME

6       vga_setmodeX - try to set Mode X-like memory organization
7

SYNOPSIS

9       #include <vga.h>
10
11       void vga_setmodeX(void);
12
13

DESCRIPTION

15       Try to enable Mode X-like memory organization for 256 color modes using
16       up to 256K of memory like 320x200x256 and 640x400x256.
17
18       Modes like 320x240x256 etc. are  Mode  X-like  by  default.   vga_mode‐
19       info(3) lists which modes have Mode X memory layout.
20
21       A  mode  X  like  memory  layout means that memory is organized in four
22       pages (set_page(3)) and that the top most pixel 0,1,2,3 are  the  first
23       pixel  in  pages  0,1,2,3. Pixels 4,5,6,7 are than the second pixels in
24       pages 0,1,2,3.
25
26       The other, packed pixel, mode will have pixel 0,1,2,3 as pixel  0,1,2,3
27       in page 0 and so on. It will only use the next pages if the size of the
28       first 64K page is exceeded. Most SVGA 256 color modes work this way.
29
30       This is not guaranteed to work. Probably a new mode should  be  defined
31       for planar 320x200x256.
32

SEE ALSO

34       svgalib(7), vgagl(7), libvga.config(5), vgatest(6), vga_getmodeinfo(3),
35       vga_setmode(3), vga_setpage(3),
36

AUTHOR

38       This manual page was edited  by  Michael  Weller  <eowmob@exp-math.uni-
39       essen.de>.  The  exact  source of the referenced function as well as of
40       the original documentation is unknown.
41
42       It is very likely that both are at least to some extent are due to Harm
43       Hanemaayer <H.Hanemaayer@inter.nl.net>.
44
45       Occasionally  this  might be wrong. I hereby asked to be excused by the
46       original author and will happily accept any additions or corrections to
47       this first version of the svgalib manual.
48
49
50
51Svgalib (>= 1.2.11)              27 July 1997                  vga_setmodeX(3)
Impressum