1 /*-----------------------------------------------------------------------
\r
4 ; This module was written by Matthew MacKenzie
\r
7 ; Clipped transfer of planar bitmaps from system memory to video memory.
\r
12 ; ****** XLIB - Mode X graphics library ****************
\r
13 ; ****** ****************
\r
14 ; ****** Written By Themie Gouthas ****************
\r
16 ; Terminology & notes:
\r
18 ; SRAM == System RAM
\r
19 ; X coordinates are in pixels unless explicitly stated
\r
21 ;----------------------------------------------------------------------*/
\r
23 #ifndef _XCLIPPBM_H_
\r
24 #define _XCLIPPBM_H_
\r
26 /* unlike most global variables in Xlib, these are meant to be written to;
\r
27 in fact they start off uninitialized -- all values are in pixels */
\r
28 extern int TopBound;
\r
29 extern int BottomBound;
\r
30 extern int LeftBound;
\r
31 extern int RightBound;
\r
38 /* for both functions, a return value of 1 indicates that the entire
\r
39 bitmap was outside the bounding box, while a value of 0 means that
\r
40 something may have ended up on the screen */
\r
42 /* copies a planar bitmap from SRAM to VRAM, with clipping */
\r
44 int x_clip_pbm (int X, int Y, int ScreenOffs, char far * Bitmap);
\r
46 /* copies a planar bitmap from SRAM to VRAM, with clipping -- 0 bytes
\r
47 in the bitmap are not copied */
\r
49 int x_clip_masked_pbm (int X, int Y, int ScreenOffs, char far * Bitmap);
\r