Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit merge libXft 2.3.7, libXpm 3.5.14, and libXra...



details:   https://anonhg.NetBSD.org/xsrc/rev/c257c93d1a23
branches:  trunk
changeset: 7301:c257c93d1a23
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jan 08 06:03:45 2023 +0000

description:
merge libXft 2.3.7, libXpm 3.5.14, and libXrandr 1.5.3.

diffstat:

 external/mit/libXft/dist/src/xftglyphs.c      |   4 ++--
 external/mit/libXpm/dist/src/create.c         |   2 +-
 external/mit/libXrandr/dist/compile           |  17 +++++++++--------
 external/mit/libXrandr/dist/src/XrrProvider.c |  23 ++++++-----------------
 4 files changed, 18 insertions(+), 28 deletions(-)

diffs (161 lines):

diff -r b0d1bef98295 -r c257c93d1a23 external/mit/libXft/dist/src/xftglyphs.c
--- a/external/mit/libXft/dist/src/xftglyphs.c  Sun Jan 08 06:01:00 2023 +0000
+++ b/external/mit/libXft/dist/src/xftglyphs.c  Sun Jan 08 06:03:45 2023 +0000
@@ -847,11 +847,11 @@
                if (font->info.load_flags & FT_LOAD_VERTICAL_LAYOUT)
                {
                    xftg->metrics.xOff = 0;
-                   xftg->metrics.yOff = (short)(-font->public.max_advance_width);
+                   xftg->metrics.yOff = (short)(-TRUNC(ROUND(glyphslot->advance.y)));
                }
                else
                {
-                   xftg->metrics.xOff = (short)(font->public.max_advance_width);
+                   xftg->metrics.xOff = (short)(TRUNC(ROUND(glyphslot->advance.x)));
                    xftg->metrics.yOff = 0;
                }
            }
diff -r b0d1bef98295 -r c257c93d1a23 external/mit/libXpm/dist/src/create.c
--- a/external/mit/libXpm/dist/src/create.c     Sun Jan 08 06:01:00 2023 +0000
+++ b/external/mit/libXpm/dist/src/create.c     Sun Jan 08 06:03:45 2023 +0000
@@ -2231,7 +2231,7 @@
        }
     }
     /*
-     * store found informations in the XpmImage structure
+     * store found information in the XpmImage structure
      */
     image->width = width;
     image->height = height;
diff -r b0d1bef98295 -r c257c93d1a23 external/mit/libXrandr/dist/compile
--- a/external/mit/libXrandr/dist/compile       Sun Jan 08 06:01:00 2023 +0000
+++ b/external/mit/libXrandr/dist/compile       Sun Jan 08 06:03:45 2023 +0000
@@ -1,9 +1,9 @@
 #! /bin/sh
 # Wrapper for compilers which do not understand '-c -o'.
 
-scriptversion=2012-10-14.11; # UTC
+scriptversion=2018-03-07.03; # UTC
 
-# Copyright (C) 1999-2014 Free Software Foundation, Inc.
+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
 # Written by Tom Tromey <tromey%cygnus.com@localhost>.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+# along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
 # As a special exception to the GNU General Public License, if you
 # distribute this file as part of a program that contains a
@@ -53,7 +53,7 @@
          MINGW*)
            file_conv=mingw
            ;;
-         CYGWIN*)
+         CYGWIN* | MSYS*)
            file_conv=cygwin
            ;;
          *)
@@ -67,7 +67,7 @@
        mingw/*)
          file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
          ;;
-       cygwin/*)
+       cygwin/* | msys/*)
          file=`cygpath -m "$file" || echo "$file"`
          ;;
        wine/*)
@@ -255,7 +255,8 @@
     echo "compile $scriptversion"
     exit $?
     ;;
-  cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
+  cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
+  icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
     func_cl_wrapper "$@"      # Doesn't return...
     ;;
 esac
@@ -339,9 +340,9 @@
 # Local Variables:
 # mode: shell-script
 # sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
+# eval: (add-hook 'before-save-hook 'time-stamp)
 # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "; # UTC"
 # End:
diff -r b0d1bef98295 -r c257c93d1a23 external/mit/libXrandr/dist/src/XrrProvider.c
--- a/external/mit/libXrandr/dist/src/XrrProvider.c     Sun Jan 08 06:01:00 2023 +0000
+++ b/external/mit/libXrandr/dist/src/XrrProvider.c     Sun Jan 08 06:03:45 2023 +0000
@@ -67,7 +67,7 @@
 
        rbytes = (sizeof(XRRProviderResources) + rep.nProviders *
                  sizeof(RRProvider));
-       xrpr = (XRRProviderResources *) Xmalloc(rbytes);
+       xrpr = Xmalloc(rbytes);
     } else {
        nbytes = 0;
        nbytesRead = 0;
@@ -104,8 +104,6 @@
     free(provider_resources);
 }
 
-#define ProviderInfoExtra      (SIZEOF(xRRGetProviderInfoReply) - 32)
-#define ProviderInfoExtraWords (ProviderInfoExtra >> 2)
 XRRProviderInfo *
 XRRGetProviderInfo(Display *dpy, XRRScreenResources *resources, RRProvider provider)
 {
@@ -124,7 +122,7 @@
     req->provider = provider;
     req->configTimestamp = resources->configTimestamp;
 
-    if (!_XReply (dpy, (xReply *) &rep, ProviderInfoExtraWords, xFalse))
+    if (!_XReply (dpy, (xReply *) &rep, 0, xFalse))
     {
        UnlockDisplay (dpy);
        SyncHandle ();
@@ -132,23 +130,14 @@
     }
 
     if (rep.length > (INT_MAX >> 2)
-#if ProviderInfoExtraWords > 0
-       || rep.length < ProviderInfoExtraWords
-#endif
-    )
     {
-#if ProviderInfoExtraWords > 0
-       if (rep.length < ProviderInfoExtraWords)
-           _XEatDataWords (dpy, rep.length);
-       else
-#endif
-           _XEatDataWords (dpy, rep.length - ProviderInfoExtraWords);
+       _XEatDataWords (dpy, rep.length);
        UnlockDisplay (dpy);
        SyncHandle ();
        return NULL;
     }
 
-    nbytes = ((long) rep.length << 2) - ProviderInfoExtra;
+    nbytes = ((long) rep.length << 2);
 
     nbytesRead = (long)(rep.nCrtcs * 4 +
                        rep.nOutputs * 4 +
@@ -161,9 +150,9 @@
              rep.nAssociatedProviders * (sizeof(RRProvider) + sizeof(unsigned int))+
              rep.nameLength + 1);
 
-    xpi = (XRRProviderInfo *)Xmalloc(rbytes);
+    xpi = Xmalloc(rbytes);
     if (xpi == NULL) {
-       _XEatDataWords (dpy, rep.length - (ProviderInfoExtra >> 2));
+       _XEatDataWords (dpy, rep.length);
        UnlockDisplay (dpy);
        SyncHandle ();
        return NULL;



Home | Main Index | Thread Index | Old Index