~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/xlibi18n/mbWrap.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-17 16:34:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090117163454-gaey3cd32xyavueo
Tags: 2:1.1.99.2-1build1
Fakesync with Debian, all previous Ubuntu changes are included
in the new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 * documentation for any purpose is hereby granted without fee, provided that
34
34
 * the above copyright notice appear in all copies and that both that
35
35
 * copyright notice and this permission notice appear in supporting
36
 
 * documentation, and that the name of Open Software Foundation 
 
36
 * documentation, and that the name of Open Software Foundation
37
37
 * not be used in advertising or publicity pertaining to distribution of the
38
38
 * software without specific, written prior permission.  Open Software
39
39
 * Foundation makes no representations about the suitability of this
43
43
 * OPEN SOFTWARE FOUNDATION DISCLAIMS ALL WARRANTIES WITH REGARD TO
44
44
 * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
45
45
 * FITNESS, IN NO EVENT SHALL OPEN SOFTWARE FOUNDATIONN BE
46
 
 * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 
 
46
 * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
47
47
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
48
48
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
49
49
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
50
 
 * 
51
 
 *               M. Collins             OSF  
52
 
 */                             
 
50
 *
 
51
 *               M. Collins             OSF
 
52
 */
53
53
/* $XFree86: xc/lib/X11/mbWrap.c,v 1.6 2001/12/14 19:54:10 dawes Exp $ */
54
54
 
55
55
#ifdef HAVE_CONFIG_H
122
122
                                                (char *)text, text_len);
123
123
}
124
124
 
125
 
int 
 
125
int
126
126
XmbTextEscapement(
127
127
    XFontSet        font_set,
128
128
    _Xconst char   *text,
159
159
    XRectangle     *max_logical_extents)
160
160
{
161
161
    return (*font_set->methods->mb_extents_per_char)
162
 
             (font_set, (char *)text, text_len, 
 
162
             (font_set, (char *)text, text_len,
163
163
              ink_extents_buffer, logical_extents_buffer,
164
164
              buffer_size, num_chars, max_ink_extents, max_logical_extents);
165
165
}