浏览代码

Backends: warning fix.

ocornut 1 月之前
父节点
当前提交
afe20dc9b6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backends/imgui_impl_dx9.cpp

+ 1 - 1
backends/imgui_impl_dx9.cpp

@@ -374,7 +374,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