Cleanup: style

This commit is contained in:
Campbell Barton
2015-03-13 00:07:26 +11:00
parent 92d77b250e
commit cef379242b
2 changed files with 4 additions and 3 deletions

View File

@@ -222,7 +222,7 @@ public:
int v = y;
this->wrap_pixel(u, v, extend_x, extend_y);
const int offset = (this->m_width * y + x) * this->m_num_channels;
float* buffer = &this->m_buffer[offset];
float *buffer = &this->m_buffer[offset];
memcpy(result, buffer, sizeof(float) * this->m_num_channels);
}
}

View File

@@ -954,12 +954,13 @@ PropertyRNA *UNUSED(prop), bool *r_free)
EnumPropertyItem *item = NULL;
int i = 1, totitem = 0;
if(imf->depth == 16)
if (imf->depth == 16)
return exr_codec_items; /* All compression types are defined for halfs */
for (i = 0; i < R_IMF_EXR_CODEC_MAX; i++) {
if((i == R_IMF_EXR_CODEC_B44 || i == R_IMF_EXR_CODEC_B44A))
if ((i == R_IMF_EXR_CODEC_B44 || i == R_IMF_EXR_CODEC_B44A)) {
continue; /* B44 and B44A are not defined for 32 bit floats */
}
RNA_enum_item_add(&item, &totitem, &exr_codec_items[i]);
}