1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-23 02:38:53 -05:00

Fix truncation warnings. (#392)

This commit is contained in:
Rokas Kupstys 2022-09-07 02:17:09 +03:00 committed by GitHub
parent e80e42e8b4
commit 002ffc95bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1189,8 +1189,8 @@ void Demo_LinkedAxes() {
void Demo_AxisConstraints() { void Demo_AxisConstraints() {
static float constraints[4] = {-10,10,1,20}; static float constraints[4] = {-10,10,1,20};
static ImPlotAxisFlags flags; static ImPlotAxisFlags flags;
ImGui::DragFloat2("Limits Constraints", &constraints[0], 0.01); ImGui::DragFloat2("Limits Constraints", &constraints[0], 0.01f);
ImGui::DragFloat2("Zoom Constraints", &constraints[2], 0.01); ImGui::DragFloat2("Zoom Constraints", &constraints[2], 0.01f);
CHECKBOX_FLAG(flags, ImPlotAxisFlags_PanStretch); CHECKBOX_FLAG(flags, ImPlotAxisFlags_PanStretch);
if (ImPlot::BeginPlot("##AxisConstraints",ImVec2(-1,0))) { if (ImPlot::BeginPlot("##AxisConstraints",ImVec2(-1,0))) {
ImPlot::SetupAxes("X","Y",flags,flags); ImPlot::SetupAxes("X","Y",flags,flags);