public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/lazpaint] rawhide: Fix build wih fpc-3.2.4~rc2
@ 2026-09-01  7:05 Artur Frenszek-Iwicki
  0 siblings, 0 replies; only message in thread
From: Artur Frenszek-Iwicki @ 2026-09-01  7:05 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/lazpaint
Branch : rawhide
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=rawhide

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-01  7:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-01  7:05 [rpms/lazpaint] rawhide: Fix build wih fpc-3.2.4~rc2 Artur Frenszek-Iwicki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox