Backends: warning fixes (for docking branch).

This commit is contained in:
ocornut
2025-06-20 15:24:25 +02:00
parent b580c11303
commit 4fde473f38
6 changed files with 9 additions and 7 deletions

View File

@@ -391,7 +391,7 @@ static void ImGui_ImplDX9_CopyTextureRegion(bool tex_use_colors, const ImU32* sr
#endif
for (int y = 0; y < h; y++)
{
const ImU32* src_p = (const ImU32*)(void*)((const unsigned char*)src + src_pitch * y);
const ImU32* src_p = (const ImU32*)(const void*)((const unsigned char*)src + src_pitch * y);
ImU32* dst_p = (ImU32*)(void*)((unsigned char*)dst + dst_pitch * y);
if (convert_rgba_to_bgra)
for (int x = w; x > 0; x--, src_p++, dst_p++) // Convert copy