<div dir="ltr"><p>For review by anyone<br><br>branch: master, 14.01<br><br>extras/graphics/easyx/samples/bounce.m:<br>extras/graphics/mercury_allegro/examples/exspline.m:<br>extras/graphics/mercury_allegro/samples/demo/aster.m:<br>

extras/graphics/mercury_allegro/samples/speed/view.m:<br>    in all files: s/index0_det/det_index0/g<br><br>So that these examples are compiling with the recent version<br>of the compiler.<br>---<br> extras/graphics/easyx/samples/bounce.m               | 6 +++---<br>

 extras/graphics/mercury_allegro/examples/exspline.m  | 4 ++--<br> extras/graphics/mercury_allegro/samples/demo/aster.m | 4 ++--<br> extras/graphics/mercury_allegro/samples/speed/view.m | 2 +-<br> 4 files changed, 8 insertions(+), 8 deletions(-)<br>

<br>diff --git a/extras/graphics/easyx/samples/bounce.m b/extras/graphics/easyx/samples/bounce.m<br>index 5dbb6c2..f73f3dc 100644<br>--- a/extras/graphics/easyx/samples/bounce.m<br>+++ b/extras/graphics/easyx/samples/bounce.m<br>

@@ -221,7 +221,7 @@ add_new_ball(Colours, Objects, [Ball | Objects], !Rnd) :-<br>     VX   = 0.001 + float(VX0 mod 100) / 10000.0,<br>     VY   = 0.0,<br>     R    = 0.025 + float(R0 mod 25) / 1000.0,<br>-    C    = index0_det(Colours, 2 + (N0 / 1000) mod (length(Colours) - 2)),<br>

+    C    = det_index0(Colours, 2 + (N0 / 1000) mod (length(Colours) - 2)),<br>     Ball = ball(X, Y, VX, VY, R, C).<br> <br> %-----------------------------------------------------------------------------%<br>@@ -252,8 +252,8 @@ main(!IO) :-<br>

 <br> play(Window, Colours, !Paddle, !Objects, !Rnd, !IO) :-<br> <br>-    Black = index0_det(Colours, 0),<br>-    White = index0_det(Colours, 1),<br>+    Black = det_index0(Colours, 0),<br>+    White = det_index0(Colours, 1),<br>

 <br>     easyx.set_colour(Window, Black, !IO),<br>     easyx.clear_window(Window, !IO),<br>diff --git a/extras/graphics/mercury_allegro/examples/exspline.m b/extras/graphics/mercury_allegro/examples/exspline.m<br>index 57e5239..265c6df 100644<br>

--- a/extras/graphics/mercury_allegro/examples/exspline.m<br>+++ b/extras/graphics/mercury_allegro/examples/exspline.m<br>@@ -198,8 +198,8 @@ input_nodes_2(Nodes0, Nodes, !IO) :-<br> <br> calc_tangents(Nodes0, Tangents) :-<br>

     Len = length(Nodes0),<br>-    Head = dummy_node(index0_det(Nodes0, 0), index0_det(Nodes0, 1)),<br>-    Tail = dummy_node(index0_det(Nodes0, Len-1), index0_det(Nodes0, Len-2)),<br>+    Head = dummy_node(det_index0(Nodes0, 0), det_index0(Nodes0, 1)),<br>

+    Tail = dummy_node(det_index0(Nodes0, Len-1), det_index0(Nodes0, Len-2)),<br>     ( list.take(Len-1, Nodes0, ButLast) -><br>         Tangents = list.map_corresponding(calc_tangent,<br>             [Head | ButLast], det_tail(Nodes0) ++ [Tail])<br>

diff --git a/extras/graphics/mercury_allegro/samples/demo/aster.m b/extras/graphics/mercury_allegro/samples/demo/aster.m<br>index 7ff3f59..4c83a95 100644<br>--- a/extras/graphics/mercury_allegro/samples/demo/aster.m<br>+++ b/extras/graphics/mercury_allegro/samples/demo/aster.m<br>

@@ -272,10 +272,10 @@ get_asteroid_sprite(Data, normal, look(Type, C), RetraceCount, Sprite) :-<br>     ),<br>     J = (RetraceCount / (6 - (C /\ 3)) + C) mod 15,<br>     Frame = (if even(C) then 14 - J else J),<br>-    Sprite = list.index0_det(Anim, Frame).<br>

+    Sprite = list.det_index0(Anim, Frame).<br> <br> get_asteroid_sprite(Data, exploding(Frame), _, _, Sprite) :-<br>-    Sprite = list.index0_det(Data ^ explosions, Frame).<br>+    Sprite = list.det_index0(Data ^ explosions, Frame).<br>

 <br> %-----------------------------------------------------------------------------%<br> <br>diff --git a/extras/graphics/mercury_allegro/samples/speed/view.m b/extras/graphics/mercury_allegro/samples/speed/view.m<br>index a4f42cb..dea03a0 100644<br>

--- a/extras/graphics/mercury_allegro/samples/speed/view.m<br>+++ b/extras/graphics/mercury_allegro/samples/speed/view.m<br>@@ -185,7 +185,7 @@ advance_view(view(ViewNum0, ViewInfos), view(ViewNum, ViewInfos), Cycled) :-<br>

     ).<br> <br> update_view(view(ViewNum, {A0, B0, C0, D0}), view(ViewNum, {A, B, C, D})) :-<br>-    list.index0_det(view_configurations, ViewNum, {PosA, PosB, PosC, PosD}),<br>+    list.det_index0(view_configurations, ViewNum, {PosA, PosB, PosC, PosD}),<br>

     update_viewinfo(PosA, A0, A),<br>     update_viewinfo(PosB, B0, B),<br>     update_viewinfo(PosC, C0, C),<br>--<br>1.8.3.2<br><br></p></div>