mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Style: Apply new changes from clang-format 8.0
It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
This commit is contained in:
parent
4b2c79c471
commit
c8994b56f9
85 changed files with 382 additions and 251 deletions
|
@ -1266,7 +1266,8 @@ void Image::shrink_x2() {
|
|||
case FORMAT_RGBAH: _generate_po2_mipmap<uint16_t, 4, false, Image::average_4_half, Image::renormalize_half>(reinterpret_cast<const uint16_t *>(r.ptr()), reinterpret_cast<uint16_t *>(w.ptr()), width, height); break;
|
||||
|
||||
case FORMAT_RGBE9995: _generate_po2_mipmap<uint32_t, 1, false, Image::average_4_rgbe9995, Image::renormalize_rgbe9995>(reinterpret_cast<const uint32_t *>(r.ptr()), reinterpret_cast<uint32_t *>(w.ptr()), width, height); break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1398,7 +1399,8 @@ Error Image::generate_mipmaps(bool p_renormalize) {
|
|||
_generate_po2_mipmap<uint32_t, 1, false, Image::average_4_rgbe9995, Image::renormalize_rgbe9995>(reinterpret_cast<const uint32_t *>(&wp[prev_ofs]), reinterpret_cast<uint32_t *>(&wp[ofs]), prev_w, prev_h);
|
||||
|
||||
break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
|
||||
prev_ofs = ofs;
|
||||
|
@ -1612,7 +1614,8 @@ void Image::create(const char **p_xpm) {
|
|||
if (y == (size_height - 1))
|
||||
status = DONE;
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
|
||||
line++;
|
||||
|
@ -1685,7 +1688,8 @@ bool Image::is_invisible() const {
|
|||
case FORMAT_DXT5: {
|
||||
detected = true;
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
|
||||
return !detected;
|
||||
|
@ -1729,7 +1733,8 @@ Image::AlphaMode Image::detect_alpha() const {
|
|||
case FORMAT_DXT5: {
|
||||
detected = true;
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
|
||||
if (detected)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue