Fix tabs.

This commit is contained in:
castano 2011-01-19 07:25:49 +00:00
parent 5324156cc4
commit 4fc1952539

View File

@ -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];
}
}
}