| Summary: | parameter x is missing from synopsis of XDrawString in libX11.html#Drawing_Text | ||
|---|---|---|---|
| Product: | xorg | Reporter: | Christopher Yeleighton <giecrilj> |
| Component: | Documentation | Assignee: | Xorg Project Team <xorg-team> |
| Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | 7.6 (2010.12) | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
I'm not sure what version you're looking at with ancient K&R declarations, but http://www.x.org/releases/X11R7.6/doc/libX11/specs/libX11/libX11.html#Drawing_Text currently has: XDrawText(Display *display, Drawable d, GC gc, intx, y, XTextItem *items, int nitems); The x is incorrectly marked as part of the parameter type, run together with y. That's an easy fix to the docbook markup: diff --git a/specs/libX11/CH08.xml b/specs/libX11/CH08.xml index 3d69b14..5f450fe 100644 --- a/specs/libX11/CH08.xml +++ b/specs/libX11/CH08.xml @@ -4744,7 +4744,8 @@ To draw 8-bit characters in a given drawable, use <paramdef>Display<parameter> *display</parameter></paramdef> <paramdef>Drawable<parameter> d</parameter></paramdef> <paramdef>GC<parameter> gc</parameter></paramdef> - <paramdef>intx,<parameter> y</parameter></paramdef> + <paramdef>int<parameter> x</parameter></paramdef> + <paramdef>int<parameter> y</parameter></paramdef> <paramdef>char<parameter> *string</parameter></paramdef> <paramdef>int<parameter> length</parameter></paramdef> </funcprototype> which makes it render as: XDrawString(Display *display, Drawable d, GC gc, int x, int y, char *string, int length); Fix checked into git as commit 6841260c8bb15404a0b4805bee3b0bdfec7176b3. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Current text: XDrawString( *display, d, gc, y, *string, length); Display *display; Drawable d; GC gc; intx, y; char *string; int length; Expected text: XDrawString (display, d, gc, x, y, string, length); Display *display; Drawable d; GC gc; int x, y; char const string []; int length;