mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
MFH: optimization via the row-major order.
This commit is contained in:
parent
fbb1927626
commit
b48f46b092
1 changed files with 2 additions and 2 deletions
|
@ -613,8 +613,8 @@ void gdImagePaletteCopy (gdImagePtr to, gdImagePtr from)
|
|||
xlate[i] = -1;
|
||||
}
|
||||
|
||||
for (x = 0; x < to->sx; x++) {
|
||||
for (y = 0; y < to->sy; y++) {
|
||||
for (x = 0; x < to->sx; x++) {
|
||||
p = gdImageGetPixel(to, x, y);
|
||||
if (xlate[p] == -1) {
|
||||
/* This ought to use HWB, but we don't have an alpha-aware version of that yet. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue