summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-al
blob: dfe72c173cfb790ae004c161fb7c802d0e0107e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-al,v 1.2 2001/12/20 09:19:55 tron Exp $

--- lib/libxview/font/font_get.c.orig	Tue Jun 29 07:15:00 1993
+++ lib/libxview/font/font_get.c	Thu Dec 20 10:10:24 2001
@@ -43,7 +43,6 @@
     XFontStruct		*x_font_info = (XFontStruct *)font->x_font_info;
     Xv_opaque       v;
     int             attr_is_char_width = 0;
-    Attr_avlist     avlist = (Attr_avlist) args;
 
 #ifdef OW_I18N
     if (font->type == FONT_TYPE_TEXT)  {
@@ -138,8 +137,8 @@
 	}
 
       case FONT_STRING_DIMS:{
-	    char           *string = (char *) avlist[0];
-	    Font_string_dims *size = (Font_string_dims *) avlist[1];
+	    char *string = (char *)va_arg(args, Attr_attribute);
+	    Font_string_dims *size = (Font_string_dims *)va_arg(args, Attr_attribute);
 	    struct pr_size  my_pf_size;
 	    if (string) {
 		my_pf_size = xv_pf_textwidth(strlen(string), font_public, string);
@@ -264,8 +263,8 @@
 
 #ifdef OW_I18N
       case FONT_STRING_DIMS_WC:{
-            wchar_t             *ws = (wchar_t *) avlist[0];
-            Font_string_dims    *size = (Font_string_dims *) avlist[1];
+            wchar_t *ws = (wchar_t *) va_arg(args, Attr_attribute);
+            Font_string_dims *size = (Font_string_dims *) va_arg(args, Attr_attribute);
             struct pr_size      my_pf_size;
 
             if (ws) {