mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
Slightly quicker border part length finding.
svn path=/trunk/netsurf/; revision=10702
This commit is contained in:
parent
dbe7069171
commit
db0640e32c
@ -1616,8 +1616,8 @@ bool html_redraw_plot_border_part(const int *p, unsigned int n,
|
||||
x1 = p[0];
|
||||
}
|
||||
y0 = p[1];
|
||||
y1 = p[3];
|
||||
for (i = 1; i < 8; i += 2) {
|
||||
y1 = p[1];
|
||||
for (i = 3; i < 8; i += 2) {
|
||||
y0 = y0 > p[i] ? p[i] : y0;
|
||||
y1 = y1 < p[i] ? p[i] : y1;
|
||||
}
|
||||
@ -1636,8 +1636,8 @@ bool html_redraw_plot_border_part(const int *p, unsigned int n,
|
||||
y1 = p[1];
|
||||
}
|
||||
x0 = p[0];
|
||||
x1 = p[2];
|
||||
for (i = 0; i < 7; i += 2) {
|
||||
x1 = p[0];
|
||||
for (i = 2; i < 7; i += 2) {
|
||||
x0 = x0 > p[i] ? p[i] : x0;
|
||||
x1 = x1 < p[i] ? p[i] : x1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user