Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
epezent committed Sep 19, 2021
1 parent e6ae63b commit 77b67d2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions demos/demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ struct ImPlotDemo : App {
// ImGui::ShowDemoWindow();
// ImPlot::ShowMetricsWindow();
// ImGui::ShowMetricsWindow();

ImGui::Begin("Test");
ImGui::Button("Derp");
if (ImGui::BeginDragDropSource()) {
ImGui::Text("Derp");
ImGui::EndDragDropSource();
}
ImGui::End();


}
};

Expand Down
2 changes: 1 addition & 1 deletion demos/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct Expression {
struct ImGraph : App {

Expression expr;
ImLimitsXY limits;
ImBounds limits;

using App::App;

Expand Down
2 changes: 1 addition & 1 deletion demos/maps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class TileManager {
worker.join();
}

const std::vector<std::pair<TileCoord, std::shared_ptr<Tile>>>& get_region(ImLimitsXY view, ImVec2 pixels) {
const std::vector<std::pair<TileCoord, std::shared_ptr<Tile>>>& get_region(ImBounds view, ImVec2 pixels) {
double min_x = std::clamp(view.X.Min, 0.0, 1.0);
double min_y = std::clamp(view.Y.Min, 0.0, 1.0);
double size_x = std::clamp(view.X.Size(),0.0,1.0);
Expand Down

0 comments on commit 77b67d2

Please sign in to comment.