Rename loop variable
This commit is contained in:
parent
c0742d3de0
commit
68dade3e81
|
@ -34,7 +34,7 @@ void uiImageAppend(uiImage *i, void *pixels, int pixelWidth, int pixelHeight, in
|
||||||
{
|
{
|
||||||
NSBitmapImageRep *repCalibrated, *repsRGB;
|
NSBitmapImageRep *repCalibrated, *repsRGB;
|
||||||
uint8_t *swizzled, *bp, *sp;
|
uint8_t *swizzled, *bp, *sp;
|
||||||
int n, l;
|
int x, y;
|
||||||
unsigned char *pix[1];
|
unsigned char *pix[1];
|
||||||
|
|
||||||
// OS X demands that R and B are in the opposite order from what we expect
|
// 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[]");
|
swizzled = (uint8_t *) uiprivAlloc((byteStride * pixelHeight) * sizeof (uint8_t), "uint8_t[]");
|
||||||
bp = (uint8_t *) pixels;
|
bp = (uint8_t *) pixels;
|
||||||
sp = swizzled;
|
sp = swizzled;
|
||||||
for (l = 0; l < pixelHeight; l++){
|
for (y = 0; y < pixelHeight; y++){
|
||||||
for (n = 0; n < pixelWidth; n++) {
|
for (x = 0; x < pixelWidth; x++) {
|
||||||
sp[0] = bp[2];
|
sp[0] = bp[2];
|
||||||
sp[1] = bp[1];
|
sp[1] = bp[1];
|
||||||
sp[2] = bp[0];
|
sp[2] = bp[0];
|
||||||
|
|
Loading…
Reference in New Issue