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

NAME

6       vga_getmodename - return a name for the given video mode
7

SYNOPSIS

9       #include <vga.h>
10
11       char *vga_getmodename(int mode);
12
13

DESCRIPTION

15       A  pointer  to a static memory buffer is returned. Depending on mode it
16       consist of a capital G followed by the amount of x pixels, followed  by
17       a lower case x, followed by the amount of y pixels, followed by a lower
18       case x.  Finally the number of different colors is appended.  Here  the
19       shortcuts 32K,64K,16M, and 16M4 are used for 32768, 65536, and 16777216
20       are used. The last refers also to 16777216 which are store in  4  bytes
21       (highest address byte unused) for easier screen access.
22
23       For unsupported values of mode the empty string "" is returned. In gen‐
24       eral the string resembles the corresponding #define for  the  videomode
25       in #include <vga.h>.
26
27

EXAMPLE

29       vga_getmodename(10) returns "G640x480x256".
30

SEE ALSO

32       svgalib(7),  vgagl(7),  libvga.config(5),  vgatest(6),  vga_hasmode(3),
33       vga_modeinfo(3), vga_setmode(3), vga_lastmodenumber(3), vga_getcurrent‐
34       mode(3), vga_getdefaultmode(3), vga_getmodenumber(3)
35

AUTHOR

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