•  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-Filevswr_mode()                                                             VDI

Syntax

WORD vswr_mode( handle, mode )
WORD handle, mode;

Function      vswr_mode() defines the writing mode for rendering VDI
              objects.

Opcode        32

Availability  Supported by all drivers.

Parameters    handle specifies a valid workstation handle.
              mode specifies a writing mode as follows:

              Name       mode   Example

index=1044
MD_REPLACE 1
index=1045
MD_TRANS 2
index=1046
MD_XOR 3
index=1047
MD_ERASE 4 Binding contrl[0] = 32; contrl[1] = 0; contrl[3] = 1; contrl[6] = handle; intin[0] = mode; vdi(); return intout[0]; Return Value vswr_mode() returns the writing mode set. Comments In true-color modes, MD_ERASE and MD_TRANS work a little differently, they write (or avoid writing on) whatever color is currently held in VDI color 0 (as opposed to the actual register reference of 0). Group VDI Attributes