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

NAME

6       vga_fillblt - file rectangular area in video memory with a single color
7

SYNOPSIS

9       #include <vga.h>
10
11       void vga_fillblt(int destaddr, int w, int h, int pitch, int color);
12
13

DESCRIPTION

15       Fill  a  rectangular  area  in  video memory with a single color color.
16       destaddr is an offset into video memory (up to 2M). The  pitch  is  the
17       logical  width  of  the  screen.  Height  h is in Pixels, Width w is in
18       BYTES!
19
20       This is an old style function to access  the  accelerator  of  an  SVGA
21       card.  Before calling it you should check for availability of the func‐
22       tion in the mode you use with vga_getmodeinfo(3).
23
24       For new applications you might be better of trying to use  vga_accel(3)
25       instead.
26
27       The  old vga_bitblt(3), vga_blitwait(3), vga_fillblt(3), vga_hlinelist‐
28       blt(3), and vga_imageblt(3) interface was originally designed  for  the
29       Cirrus  chipsets.  Then  Mach32  added  support too but has problems to
30       resemble the unintuitive Cirrus interface. Then these  new  ideas  were
31       reinjected  and vga_accel(3) was designed. Now Cirrus and Chips & Tech‐
32       nologies chipset give limited vga_accel(3) support but no  longer  this
33       old style support.  Mach32 is left to use the unintuitive Cirrus inter‐
34       face. At some future point the functions might be added for Mach32  too
35       (which  should  be  rather  simple), so new applications should use the
36       newer and probably more efficient interface.
37
38       It would be fatal if the accelerator would be used while the console is
39       switched  away.   You  should  use vga_lockvc(3) and vga_unlockvc(3) to
40       avoid this, although good implementations of the accelerator  functions
41       (like Mach32) will already ensure that.
42
43       The testaccel(6) demo utilizes the old style accelerator functions.
44
45

SEE ALSO

47       svgalib(7),  vgagl(7),  libvga.config(5),  testaccel(6),  vga_accel(3),
48       vga_bitblt(3), vga_blitwait(3),  vga_hlinelistblt(3),  vga_imageblt(3),
49       vga_getmodeinfo(3), vga_lockvc(3), vga_unlockvc(3)
50
51

AUTHOR

53       This  manual  page  was  edited by Michael Weller <eowmob@exp-math.uni-
54       essen.de>. The exact source of the referenced function as  well  as  of
55       the original documentation is unknown.
56
57       It is very likely that both are at least to some extent are due to Harm
58       Hanemaayer <H.Hanemaayer@inter.nl.net>.
59
60       Occasionally this might be wrong. I hereby asked to be excused  by  the
61       original author and will happily accept any additions or corrections to
62       this first version of the svgalib manual.
63
64
65
66Svgalib (>= 1.2.11)              27 July 1997                   vga_fillblt(3)
Impressum