Rename loop variable

This commit is contained in:
Niklas Mischkulnig 2018-08-06 10:54:19 +02:00
parent c0742d3de0
commit 68dade3e81
No known key found for this signature in database
GPG Key ID: 9AB442486F8CDE7B
1 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ void uiImageAppend(uiImage *i, void *pixels, int pixelWidth, int pixelHeight, in
{
NSBitmapImageRep *repCalibrated, *repsRGB;
uint8_t *swizzled, *bp, *sp;
int n, l;
int x, y;
unsigned char *pix[1];
// OS X demands that R and B are in the opposite order from what we expect
@ -43,8 +43,8 @@ void uiImageAppend(uiImage *i, void *pixels, int pixelWidth, int pixelHeight, in
swizzled = (uint8_t *) uiprivAlloc((byteStride * pixelHeight) * sizeof (uint8_t), "uint8_t[]");
bp = (uint8_t *) pixels;
sp = swizzled;
for (l = 0; l < pixelHeight; l++){
for (n = 0; n < pixelWidth; n++) {
for (y = 0; y < pixelHeight; y++){
for (x = 0; x < pixelWidth; x++) {
sp[0] = bp[2];
sp[1] = bp[1];
sp[2] = bp[0];