You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Style: Enforce braces around if blocks and loops
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
This commit is contained in:
@@ -78,8 +78,9 @@ void image_decompress_squish(Image *p_image) {
|
||||
}
|
||||
|
||||
void image_compress_squish(Image *p_image, float p_lossy_quality, Image::UsedChannels p_channels) {
|
||||
if (p_image->get_format() >= Image::FORMAT_DXT1)
|
||||
if (p_image->get_format() >= Image::FORMAT_DXT1) {
|
||||
return; //do not compress, already compressed
|
||||
}
|
||||
|
||||
int w = p_image->get_width();
|
||||
int h = p_image->get_height();
|
||||
@@ -87,10 +88,11 @@ void image_compress_squish(Image *p_image, float p_lossy_quality, Image::UsedCha
|
||||
if (p_image->get_format() <= Image::FORMAT_RGBA8) {
|
||||
int squish_comp = squish::kColourRangeFit;
|
||||
|
||||
if (p_lossy_quality > 0.85)
|
||||
if (p_lossy_quality > 0.85) {
|
||||
squish_comp = squish::kColourIterativeClusterFit;
|
||||
else if (p_lossy_quality > 0.75)
|
||||
} else if (p_lossy_quality > 0.75) {
|
||||
squish_comp = squish::kColourClusterFit;
|
||||
}
|
||||
|
||||
Image::Format target_format = Image::FORMAT_RGBA8;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user