summaryrefslogtreecommitdiff
path: root/media-gfx/fotoxx/files/fotoxx-15.05-gcc-11.patch
blob: 5d84e687d3979cd1062c46e25bca0c6255bea197 (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
Fix 'smart_erase_blur' declaration and definition mismatch.

https://bugs.gentoo.org/768207
--- a/f.repair.cc
+++ b/f.repair.cc
@@ -2265,7 +2265,7 @@ void smart_erase_func(int mode)
 
 //  add blur to the erased area to help mask the side-effects
 
-int smart_erase_blur(float radius)
+void smart_erase_blur(float radius)
 {
    int         ii, px, py, dx, dy, adx, ady;
    float       blur_weight[12][12];                                        //  up to blur radius = 10
@@ -2274,7 +2274,7 @@ int smart_erase_blur(float radius)
    float       red, green, blue;
    float       *pix9, *pix3, *pixN;
 
-   if (sa_stat != 3) return 0;
+   if (sa_stat != 3) return;
 
    rad = radius - 0.2;
    rad2 = rad * rad;
@@ -2342,7 +2342,6 @@ int smart_erase_blur(float radius)
    CEF->Fmods++;
    CEF->Fsaved = 0;
    Fpaint2();                                                              //  update window
-   return 0;
 }