mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Misc: Bunch of code formatting changes suggested by a pass running 'astyle'
This commit is contained in:
parent
dca7c3c629
commit
0738611559
20 changed files with 326 additions and 325 deletions
|
|
@ -221,7 +221,7 @@ static uint32_t ImGui_ImplVulkan_MemoryType(VkMemoryPropertyFlags properties, ui
|
|||
VkPhysicalDeviceMemoryProperties prop;
|
||||
vkGetPhysicalDeviceMemoryProperties(v->PhysicalDevice, &prop);
|
||||
for (uint32_t i = 0; i < prop.memoryTypeCount; i++)
|
||||
if ((prop.memoryTypes[i].propertyFlags & properties) == properties && type_bits & (1<<i))
|
||||
if ((prop.memoryTypes[i].propertyFlags & properties) == properties && type_bits & (1 << i))
|
||||
return i;
|
||||
return 0xFFFFFFFF; // Unable to find memoryType
|
||||
}
|
||||
|
|
@ -442,7 +442,7 @@ bool ImGui_ImplVulkan_CreateFontsTexture(VkCommandBuffer command_buffer)
|
|||
unsigned char* pixels;
|
||||
int width, height;
|
||||
io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height);
|
||||
size_t upload_size = width*height*4*sizeof(char);
|
||||
size_t upload_size = width * height * 4 * sizeof(char);
|
||||
|
||||
VkResult err;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue