Fix tabs.
This commit is contained in:
parent
5324156cc4
commit
4fc1952539
@ -480,10 +480,11 @@ void ColorSet::setColors(const float * data, uint img_w, uint img_h, uint img_x,
|
||||
{
|
||||
for (uint x = 0; x < w; x++, i++)
|
||||
{
|
||||
colors[i].x = r[x + img_x, y + img_y];
|
||||
colors[i].y = g[x + img_x, y + img_y];
|
||||
colors[i].z = b[x + img_x, y + img_y];
|
||||
colors[i].w = a[x + img_x, y + img_y];
|
||||
uint idx = x + img_x + (y + img_y) * img_w;
|
||||
colors[i].x = r[idx];
|
||||
colors[i].y = g[idx];
|
||||
colors[i].z = b[idx];
|
||||
colors[i].w = a[idx];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user