aboutsummaryrefslogtreecommitdiff
path: root/man/man3/allocimage.3
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-08-13 23:41:59 -0400
committerRuss Cox <rsc@swtch.com>2020-08-13 23:43:43 -0400
commit977b25a76ae8263e53fb4eb1abfc395769f23e3d (patch)
treeb04cc1be9205fd85f588e9434642e8aed8a8a4fd /man/man3/allocimage.3
parenta1c4307800c7f1ef9c5d71ba4c6c3642837e2877 (diff)
downloadplan9port-977b25a76ae8263e53fb4eb1abfc395769f23e3d.tar.gz
plan9port-977b25a76ae8263e53fb4eb1abfc395769f23e3d.tar.bz2
plan9port-977b25a76ae8263e53fb4eb1abfc395769f23e3d.zip
tmac: introduce real manual reference macro instead of overloading IR
The overloading of IR emits magic \X'...' sequences that turn into HTML manual links. But not all such IR invocations should be manual links; those had to be written to avoid the IR macro before. Worse, the \X'...' ending the IR causes troff to emit only a single space after a period. Defining a new IM macro for manual references fixes both problems. Fixes #441.
Diffstat (limited to 'man/man3/allocimage.3')
-rw-r--r--man/man3/allocimage.320
1 files changed, 10 insertions, 10 deletions
diff --git a/man/man3/allocimage.3 b/man/man3/allocimage.3
index 8bfd323d..72ee805e 100644
--- a/man/man3/allocimage.3
+++ b/man/man3/allocimage.3
@@ -135,7 +135,7 @@ The
field will have been set to the identifying number used by
.B /dev/draw
(see
-.IR draw (3)),
+.IM draw (3) ),
and the
.I cache
field will be zero.
@@ -148,7 +148,7 @@ The
field will be set to the number of bits per pixel specified
by the channel descriptor
(see
-.IR image (7)).
+.IM image (7) ).
.I Allocimage
returns 0 if the server has run out of image memory.
.PP
@@ -191,7 +191,7 @@ These routines permit unrelated applications sharing a display to share an image
for example they provide the mechanism behind
.B getwindow
(see
-.IR graphics (3)).
+.IM graphics (3) ).
.PP
The RGB values in a color are
.I premultiplied
@@ -214,7 +214,7 @@ values between image and user space or external files.
There is a fixed format for the exchange and storage of
image data
(see
-.IR image (7)).
+.IM image (7) ).
.PP
.I Unloadimage
reads a rectangle of pixels from image
@@ -271,7 +271,7 @@ but for
bytes of compressed image
.I data
(see
-.IR image (7)).
+.IM image (7) ).
On each call to
.IR cloadimage,
the
@@ -289,7 +289,7 @@ return the number of bytes copied.
.PP
.I Readimage
creates an image from data contained in an external file (see
-.IR image (7)
+.IM image (7)
for the file format);
.I fd
is a file descriptor obtained by opening such a file for reading.
@@ -333,10 +333,10 @@ To allocate a single-pixel replicated image that may be used to paint a region r
.SH SOURCE
.B \*9/src/libdraw
.SH "SEE ALSO"
-.IR graphics (3),
-.IR draw (3),
-.IR draw (3),
-.IR image (7)
+.IM graphics (3) ,
+.IM draw (3) ,
+.IM draw (3) ,
+.IM image (7)
.SH DIAGNOSTICS
These functions return pointer 0 or integer \-1 on failure, usually due to insufficient
memory.