Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-05 22:32:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-05 22:32:49 +0300
commit3c9e2e82fae35ae45c06c4ebc3c7db1775acc2d1 (patch)
tree9d24420d91ade94fdf4fea815a97d7b7f4ded097 /source/blender/blenkernel/intern/studiolight.c
parent851829c1fb17e96be21bb13728a0034d7bca71e8 (diff)
Cleanup: style
Diffstat (limited to 'source/blender/blenkernel/intern/studiolight.c')
-rw-r--r--source/blender/blenkernel/intern/studiolight.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/studiolight.c b/source/blender/blenkernel/intern/studiolight.c
index 0d44509ae65..8ebc8f7e082 100644
--- a/source/blender/blenkernel/intern/studiolight.c
+++ b/source/blender/blenkernel/intern/studiolight.c
@@ -586,15 +586,13 @@ static uint *studiolight_matcap_preview(StudioLight *sl, int icon_size)
uint *rect = MEM_mallocN(icon_size * icon_size * sizeof(uint), __func__);
int offset = 0;
- ImBuf* ibuf = sl->equirectangular_radiance_buffer;
- for (int y= 0; y < icon_size; y ++)
- {
- for (int x = 0; x < icon_size; x ++)
- {
+ ImBuf *ibuf = sl->equirectangular_radiance_buffer;
+ for (int y = 0; y < icon_size; y++) {
+ for (int x = 0; x < icon_size; x++) {
uint pixelresult = 0x0;
float fx = x * ibuf->x / icon_size;
float fy = y * ibuf->y / icon_size;
- nearest_interpolation_color(ibuf, (unsigned char*)&pixelresult, NULL, fx, fy);
+ nearest_interpolation_color(ibuf, (uchar *)&pixelresult, NULL, fx, fy);
rect[offset++] = pixelresult;
}
}