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:
parent
e80e42e8b4
commit
002ffc95bc
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user