qt5: update to 5.15.16
[oi-userland.git] / components / image / geeqie / patches / 01-stdmath.patch
bloba309d15fa13f40b52ccf7306ba99e1c6a1cd3e0c
1 --- geeqie-2.5/src/histogram.cc.old 2024-10-13 11:37:03.841785917 -0400
2 +++ geeqie-2.5/src/histogram.cc 2024-10-13 11:38:22.911894227 -0400
3 @@ -308,7 +308,7 @@
6 if (max > 0)
7 - logmax = log(max);
8 + logmax = std::log(max);
9 else
10 logmax = 1.0;
12 @@ -384,7 +384,7 @@
13 if (v[chanmax] == 0)
14 pt = 0;
15 else if (histogram->histogram_mode)
16 - pt = (static_cast<gdouble>(log(v[chanmax]))) / logmax * (height - 1);
17 + pt = (static_cast<gdouble>(std::log(v[chanmax]))) / logmax * (height - 1);
18 else
19 pt = (static_cast<gdouble>(v[chanmax])) / max * (height - 1);
21 --- geeqie-2.5/src/pan-view/pan-calendar.cc.old 2024-10-13 12:13:27.464106505 -0400
22 +++ geeqie-2.5/src/pan-view/pan-calendar.cc 2024-10-13 12:14:01.108288937 -0400
23 @@ -111,7 +111,7 @@
27 - grid = static_cast<gint>(sqrt(g_list_length(list)) + 0.5);
28 + grid = static_cast<gint>(std::sqrt(g_list_length(list)) + 0.5);
30 x = pi_day->x + pi_day->width + 4;
31 y = pi_day->y;
32 --- geeqie-2.5/src/pan-view/pan-folder.cc.old 2024-10-13 12:15:25.948689578 -0400
33 +++ geeqie-2.5/src/pan-view/pan-folder.cc 2024-10-13 01:15:45.795123279 -0400
34 @@ -253,7 +253,7 @@
35 x += PAN_BOX_BORDER;
36 y += PAN_BOX_BORDER;
38 - grid_size = static_cast<gint>(sqrt(g_list_length(f)) + 0.9);
39 + grid_size = static_cast<gint>(std::sqrt(g_list_length(f)) + 0.9);
40 grid_count = 0;
41 x_start = x;
42 y_height = y;