public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Artur Frenszek-Iwicki <fedora@svgames.pl>
To: git-commits@fedoraproject.org
Subject: [rpms/lazpaint] f45: Fix build wih fpc-3.2.4~rc2
Date: Tue, 01 Sep 2026 07:05:24 GMT	[thread overview]
Message-ID: <178824632458.1.2428386739914903654.rpms-lazpaint-db0ce2a8bf35@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/lazpaint
Branch : f45
Commit : db0ce2a8bf35401ae34faad3132b4e5f6a61d08e
Author : Artur Frenszek-Iwicki <fedora@svgames.pl>
Date   : 2026-09-01T08:57:40+02:00
Stats  : +42/-5 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/lazpaint/c/db0ce2a8bf35401ae34faad3132b4e5f6a61d08e?branch=f45

Log:
Fix build wih fpc-3.2.4~rc2

---
diff --git a/0000-fpc-3.2.4.patch b/0000-fpc-3.2.4.patch
index 4dd007d..ccd4cd4 100644
--- a/0000-fpc-3.2.4.patch
+++ b/0000-fpc-3.2.4.patch
@@ -1,6 +1,5 @@
-diff -rU4 lazpaint-7.3--orig/lazpaint/ugraph.pas lazpaint-7.3--patched/lazpaint/ugraph.pas
---- lazpaint-7.3--orig/lazpaint/ugraph.pas	2025-05-24 22:04:28.000000000 +0200
-+++ lazpaint-7.3--patched/lazpaint/ugraph.pas	2025-08-15 12:46:51.591556532 +0200
+--- a/lazpaint/ugraph.pas	2025-05-24 22:04:28.000000000 +0200
++++ b/lazpaint/ugraph.pas	2025-08-15 12:46:51.591556532 +0200
 @@ -1200,15 +1200,17 @@
  function NiceFrameBounds(ACanvasScale: integer; APoints: array of TPointF): TRect;
  var
@@ -23,3 +22,38 @@ diff -rU4 lazpaint-7.3--orig/lazpaint/ugraph.pas lazpaint-7.3--patched/lazpaint/
      ceil(rF.Right), ceil(rF.Bottom));
  end;
  
+--- a/use/bgrabitmap/bgracanvas.pas	2026-07-15 09:20:33.000000000 +0200
++++ b/use/bgrabitmap/bgracanvas.pas	2026-09-01 08:41:07.770983975 +0200
+@@ -1454,9 +1454,9 @@
+         c := BGRA(RStart + (i * RDiff) div Count,
+                   GStart + (i * GDiff) div Count,
+                   BStart + (i * BDiff) div Count);
+ 
+-        if ADirection = gdHorizontal then
++        if ADirection = TGradientDirection.gdHorizontal then
+           FBitmap.SetVertLine(ARect.Left+I,ARect.Top,ARect.Bottom-1,c)
+         else
+           FBitmap.SetHorizLine(ARect.Left,ARect.Top+I,ARect.Right-1,c);
+       end;
+@@ -1484,9 +1484,9 @@
+       ec.blue := CStart.blue + (i * BDiff) div Count;
+       ec.alpha := $ffff;
+       c := GammaCompression(ec);
+ 
+-      if ADirection = gdHorizontal then
++      if ADirection = TGradientDirection.gdHorizontal then
+         FBitmap.SetVertLine(ARect.Left+I,ARect.Top,ARect.Bottom-1,c)
+       else
+         FBitmap.SetHorizLine(ARect.Left,ARect.Top+I,ARect.Right-1,c);
+     end;
+@@ -1496,9 +1496,9 @@
+   with ARect do
+     if (Right <= Left) or (Bottom <= Top) then
+       Exit;
+ 
+-  if ADirection = gdVertical then
++  if ADirection = TGradientDirection.gdVertical then
+     Count := ARect.Bottom - ARect.Top
+   else
+     Count := ARect.Right - ARect.Left;
+ 

diff --git a/lazpaint.spec b/lazpaint.spec
index a78f29d..effa82a 100755
--- a/lazpaint.spec
+++ b/lazpaint.spec
@@ -11,7 +11,7 @@ URL: https://lazpaint.github.io
 License: GPL-3.0-only AND LGPL-3.0-only
 
 Version: 7.3
-Release: 5%{?dist}
+Release: 6%{?dist}
 
 # Versions taken from lazpaint/lazpaint.lpi
 %global bitmap_version   11.6.6
@@ -195,6 +195,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name_rtld}.m
 
 
 %changelog
+* Tue Sep 01 2026 Artur Frenszek-Iwicki <fedora@svgames.pl> - 7.3-6
+- Fix build with FPC 3.2.4-rc2
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 7.3-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 
@@ -202,7 +205,7 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name_rtld}.m
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 
 * Fri Aug 15 2025 Artur Frenszek-Iwicki <fedora@svgames.pl> - 7.3-3
-- Fix build with FPC 3.2.4
+- Fix build with FPC 3.2.4-rc1
 
 * Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 7.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild

                 reply	other threads:[~2026-09-01  7:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178824632458.1.2428386739914903654.rpms-lazpaint-db0ce2a8bf35@fedoraproject.org \
    --to=fedora@svgames.pl \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox