[AD] Documentation bug

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


The example for stretch_sprite() appears to be wrong. Fix follows.

regards,
Graue

Index: docs/src/allegro._tx
===================================================================
--- docs/src/allegro._tx	(revision 5704)
+++ docs/src/allegro._tx	(working copy)
@@ -6476,8 +6476,8 @@
 <codeblock>
       /* Create tunnel like effect. */
       for (step = 1; step < 16; step++) {
-	 int width = SCREEN_W / f;
-	 int height = SCREEN_H / f;
+	 int width = SCREEN_W / step;
+	 int height = SCREEN_H / step;
 	 stretch_sprite(screen, image, SCREEN_W / 2 - width / 2,
 			SCREEN_H / 2 - height / 2, width, height);
       }<endblock>




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/