2
0
Эх сурвалжийг харах

Fixes related to the new API changes

Coldzer0 1 жил өмнө
parent
commit
b7fcb0a674

+ 2 - 4
examples/CustomNodeGraph.pas

@@ -67,8 +67,6 @@ Var
   show_grid: Boolean = False;
   node_selected: Integer = -1;
 
-  test : Single = 0.0;
-
 Procedure ShowExampleAppCustomNodeGraph(opened: PBoolean);
 Var
   io: PImGuiIO;
@@ -122,7 +120,7 @@ Begin
   For node_idx := 0 To Pred(nodes.Count) Do
   Begin
     node := nodes[node_idx];
-    ImGui.PushIdInt(node.ID);
+    ImGui.PushId(node.ID);
     If ImGui.Selectable(node.Name, node.ID = node_selected) Then
       node_selected := node.ID;
 
@@ -196,7 +194,7 @@ Begin
   Begin
     node := nodes[node_idx];
 
-    ImGui.PushIdInt(node.ID);
+    ImGui.PushId(node.ID);
     node_rect_min := offset + node.Pos;
 
     // Display node contents first

+ 1 - 7
impl/PasImGui.Backend.SDL2.pas

@@ -67,10 +67,7 @@ Type
     WindowOwned: Boolean;
     GLContext: TSDL_GLContext;
   End;
-  {$J+}
-Const
-  FLT_MAX : Single = 3.40282347e+038; // This is the same as in compiled cimgui
-  {$J-}
+
 Implementation
 
 Uses
@@ -1152,7 +1149,4 @@ Begin
   End;
 End;
 
-initialization
-  FLT_MAX := igGET_FLT_MAX();
-
 End.