|
@@ -351,7 +351,7 @@ void ImDrawList::AddDrawCmd()
|
|
|
ImDrawCmd draw_cmd;
|
|
ImDrawCmd draw_cmd;
|
|
|
draw_cmd.ClipRect = GetCurrentClipRect();
|
|
draw_cmd.ClipRect = GetCurrentClipRect();
|
|
|
draw_cmd.TextureId = GetCurrentTextureId();
|
|
draw_cmd.TextureId = GetCurrentTextureId();
|
|
|
- draw_cmd.ViewId = (unsigned char)(GImGui->Style.ViewId);
|
|
|
|
|
|
|
+ draw_cmd.ViewId = (unsigned short)(GImGui->Style.ViewId);
|
|
|
|
|
|
|
|
IM_ASSERT(draw_cmd.ClipRect.x <= draw_cmd.ClipRect.z && draw_cmd.ClipRect.y <= draw_cmd.ClipRect.w);
|
|
IM_ASSERT(draw_cmd.ClipRect.x <= draw_cmd.ClipRect.z && draw_cmd.ClipRect.y <= draw_cmd.ClipRect.w);
|
|
|
CmdBuffer.push_back(draw_cmd);
|
|
CmdBuffer.push_back(draw_cmd);
|
|
@@ -486,7 +486,7 @@ void ImDrawList::ChannelsSplit(int channels_count)
|
|
|
ImDrawCmd draw_cmd;
|
|
ImDrawCmd draw_cmd;
|
|
|
draw_cmd.ClipRect = _ClipRectStack.back();
|
|
draw_cmd.ClipRect = _ClipRectStack.back();
|
|
|
draw_cmd.TextureId = _TextureIdStack.back();
|
|
draw_cmd.TextureId = _TextureIdStack.back();
|
|
|
- draw_cmd.ViewId = (unsigned char)(GImGui->Style.ViewId);
|
|
|
|
|
|
|
+ draw_cmd.ViewId = (unsigned short)(GImGui->Style.ViewId);
|
|
|
_Channels[i].CmdBuffer.push_back(draw_cmd);
|
|
_Channels[i].CmdBuffer.push_back(draw_cmd);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|