•  Back 
  •  VDI Attributes 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-Filevsf_interior()
vsf_udpat()                                                             VDI

Syntax

VOID vsf_udpat( handle, pattern, planes )
WORD handle;
WORD *planes;
WORD planes;

Function      vsf_udpat() creates the user-defined fill pattern.

Opcode        112

Availability  Supported by all drivers.

Parameters    handle specifies a valid workstation handle. In
              palette-based modes, pattern points to an array of (16 *
              planes) WORDs which provide the bit pattern for the fill. In
              true-color modes, pattern points to a 16x16 array of LONGs
              (256 in total) which each contain 32-bit color information.
              planes specifies the number of color planes for the fill.
              Use 1 for a monochrome fill on any display, a value equal to
              the number of planes on the current device for
              a palette-based color fill or 32 for a true-color display.

Binding       WORD i;

              contrl[0] = 112;
              contrl[1] = 0;
              contrl[3] = (16 * planes);
              contrl[6] = handle;

              for(i = 0;i < (16 * planes);i++)
               intin[i] = pattern[i];

              vdi();

See Also      vsf_interior()

Group         VDI Attributes