]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/2/memdraw
auth/keyfs: support -r flag to mount read-only
[plan9front.git] / sys / man / 2 / memdraw
old mode 100755 (executable)
new mode 100644 (file)
index ac1b739..9542d88
@@ -25,6 +25,7 @@ memfillpoly,
 memimageline,
 memimagedraw,
 drawclip,
+drawclipnorepl,
 memlinebbox,
 memlineendsize,
 allocmemsubfont,
@@ -94,7 +95,7 @@ int   drawdebug;
 .PP
 .ft L
 .nf
-void   memimageinit(void)
+int    memimageinit(void)
 ulong* wordaddr(Memimage *i, Point p)
 uchar* byteaddr(Memimage *i, Point p)
 void   memimagemove(void *from, void *to)
@@ -139,6 +140,9 @@ void        memimagedraw(Memimage *dst, Rectangle r, Memimage *src,
 int    drawclip(Memimage *dst, Rectangle *dr, Memimage *src,
           Point *sp, Memimage *mask, Point *mp,
           Rectangle *sr, Rectangle *mr)
+int    drawclipnorepl(Memimage *dst, Rectangle *dr, Memimage *src,
+          Point *sp, Memimage *mask, Point *mp,
+          Rectangle *sr, Rectangle *mr)
 Rectangle      memlinebbox(Point p0, Point p1, int end0, int end1,
           int radius)
 int    memlineendsize(int end)
@@ -213,7 +217,8 @@ as well as the replicated solid color images
 and
 .BR memwhite .
 It should be called before referring to any of these images
-and before calling any of the other library functions.
+and before calling any of the other library functions. It
+returns non-zero on error.
 .PP
 Each 
 .B Memimage
@@ -266,7 +271,7 @@ returning pointers to the word and byte, respectively,
 that contain the beginning of the data for a given pixel.
 .PP
 .I Allocmemimage
-allocages 
+allocates 
 images with a given rectangle and channel descriptor
 (see 
 .B strtochan
@@ -395,8 +400,18 @@ but translated so the upper left corners are the returned
 .B sp
 and
 .BR mp .
+.I Drawclipnorepl
+does the same as
+.B drawclip
+but avoids clamping
+.B sp
+and
+.B mr
+within the image rectangle of source and mask when replicated.
 .I Drawclip
-returns zero when the clipped rectangle is empty.
+and
+.I drawclipnorepl
+return zero when the clipped rectangle is empty.
 .I Memlinebbox
 returns a conservative bounding box containing a line between
 two points