mirror of
https://github.com/gwm17/implot.git
synced 2024-11-22 18:28:53 -05:00
Fix truncation warnings. (#392)
This commit is contained in:
parent
e80e42e8b4
commit
002ffc95bc
|
@ -1189,8 +1189,8 @@ void Demo_LinkedAxes() {
|
|||
void Demo_AxisConstraints() {
|
||||
static float constraints[4] = {-10,10,1,20};
|
||||
static ImPlotAxisFlags flags;
|
||||
ImGui::DragFloat2("Limits Constraints", &constraints[0], 0.01);
|
||||
ImGui::DragFloat2("Zoom Constraints", &constraints[2], 0.01);
|
||||
ImGui::DragFloat2("Limits Constraints", &constraints[0], 0.01f);
|
||||
ImGui::DragFloat2("Zoom Constraints", &constraints[2], 0.01f);
|
||||
CHECKBOX_FLAG(flags, ImPlotAxisFlags_PanStretch);
|
||||
if (ImPlot::BeginPlot("##AxisConstraints",ImVec2(-1,0))) {
|
||||
ImPlot::SetupAxes("X","Y",flags,flags);
|
||||
|
|
Loading…
Reference in New Issue
Block a user