From nobody Thu Apr 13 06:38:27 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PxqfD4rCvz45ZKW; Thu, 13 Apr 2023 06:38:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PxqfD4NMRz3Q5B; Thu, 13 Apr 2023 06:38:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681367908; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aXuOXDTQvVGqYaKsvbk/3QmLWukI/eX7f4YghlIACdI=; b=SL6nP48BSkTIkPp83m9JXoOAwAsMHfU2qw/WnlgX7NRBX74nF2+pROQDAiNakJHSg5lEpf BZ5mBMfo8cfokqFFBMDpBuAQ+lIcJUUYnWqug4Uq9ipZI1eLC5sdNMAQa5c9PLRxmtG7d2 F8aL9Vi9Rdo2WojIxtn05Qg8WAOaCtRzIKJoAocRFsz8vs5jKqFerQCMeOJ2bNG4sYO8ZX PzYpLlAhsaHMoeEDFlDvXLGAXI222s2oPARFLS5yFp8yQpVhHLjiWok42E6+QXt8iAUHfK szERE1fetiF6ZfmwnO1XwvvfVMNr5mg1ll+RSu8Amh2PK9qfjDGIniBiViYdaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681367908; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aXuOXDTQvVGqYaKsvbk/3QmLWukI/eX7f4YghlIACdI=; b=xPi043YbL+mWGqWNN27dkgJ0noOb8IYOr8GAHo5+zWRikT2gRGq98Y01nmke/KJ3KdRIIF ++lroBO0PyiVvII9BbaaZQq05EpZqklyKAUc9yIiRcIF1L4svZw4cJYe2AjYST2F9QmqZr 2Ix6pR1a2awaApHjd+wFJ2c8e5z0XNqNH+i90RXT7DNVMijRo6daMUGpL6rfSg/SnyYuT1 2SEQBSZEyfsO59mLP78WJgj4oACYLGwQfMC8c+wwmrywr6ASfqy2aY9NNZHpjncWKwjLnn z7QC+jGxMMT74F9y/qE6yK9/g9R6CUkg41ulylJWFjc468YMI3d1ClwXHfAN8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681367908; a=rsa-sha256; cv=none; b=VQEFpKBYLefLRVNkZEBxmUedmN6bu7LSvvOjBeX1JhC/6u1/mM9ruR1GunJCR/DNFVKIhJ 87JhJfYQVp/MerPQLsBtkUOgRZGMqMBrcWmm9mWZlHQfOyLppxVuhvYi8omnxGx5WzCoTM NgT/3jfY31Doav7AUchOlc8agg0UzrvJbBYQOaZzxJ/yzzCf05ysnfmgNW2i3YWybAKCyl HoL461a18wQCn41ybx9TxPsFq6Tw8tZlE7zgBR1BNxvPamsa6Lzv3ZJA649tl40XGQoupp ysfho/9izGVQg+aJZgOy++d7RTpW2nYZeEzv8rkQqeKOc9Q/Lsy5BuxPvNWVzQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PxqfD1Z2lzXBj; Thu, 13 Apr 2023 06:38:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33D6cRo1083068; Thu, 13 Apr 2023 06:38:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33D6cRQf083067; Thu, 13 Apr 2023 06:38:27 GMT (envelope-from git) Date: Thu, 13 Apr 2023 06:38:27 GMT Message-Id: <202304130638.33D6cRQf083067@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Emanuel Haupt Subject: git: 3ad1498338ba - main - graphics/grafx2: Fix TTF font rendering List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ehaupt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3ad1498338bad3d6c51bff6984ca6493fe8d8da6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ehaupt: URL: https://cgit.FreeBSD.org/ports/commit/?id=3ad1498338bad3d6c51bff6984ca6493fe8d8da6 commit 3ad1498338bad3d6c51bff6984ca6493fe8d8da6 Author: Emanuel Haupt AuthorDate: 2023-04-13 06:37:02 +0000 Commit: Emanuel Haupt CommitDate: 2023-04-13 06:38:20 +0000 graphics/grafx2: Fix TTF font rendering PR: 270781 Reported by: tobias.rehbein@web.de --- graphics/grafx2/Makefile | 1 + graphics/grafx2/files/patch-sdlscreen.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/graphics/grafx2/Makefile b/graphics/grafx2/Makefile index e953bfbb61dc..220dc2a2ab41 100644 --- a/graphics/grafx2/Makefile +++ b/graphics/grafx2/Makefile @@ -1,6 +1,7 @@ PORTNAME= grafx2 PORTVERSION= 2.8 DISTVERSIONSUFFIX= .3091-HEAD-src +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://pulkomandy.tk/projects/GrafX2/downloads/ \ LOCAL/ehaupt diff --git a/graphics/grafx2/files/patch-sdlscreen.c b/graphics/grafx2/files/patch-sdlscreen.c new file mode 100644 index 000000000000..6f75258a549a --- /dev/null +++ b/graphics/grafx2/files/patch-sdlscreen.c @@ -0,0 +1,29 @@ +--- sdlscreen.c.orig 2023-04-11 14:41:38 UTC ++++ sdlscreen.c +@@ -373,17 +373,11 @@ byte * Surface_to_bytefield(SDL_Surface *source, byte + byte *src; + byte *dest_ptr; + int y; +- int remainder; + + // Support seulement des images 256 couleurs + if (source->format->BytesPerPixel != 1) + return NULL; + +- if (source->w & 3) +- remainder=4-(source->w&3); +- else +- remainder=0; +- + if (dest==NULL) + dest=(byte *)malloc(source->w*source->h); + +@@ -393,7 +387,7 @@ byte * Surface_to_bytefield(SDL_Surface *source, byte + { + memcpy(dest_ptr, src,source->w); + dest_ptr += source->w; +- src += source->w + remainder; ++ src += source->pitch; + } + return dest; +