[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: [AD] test rest
- From: Milan Mimica <milan.mimica@xxxxxxxxxx>
- Date: Tue, 02 May 2006 21:23:22 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:mime-version:to:subject:content-type:from; b=j/2fuprPs3yjTXSq0yF8/KF/VKl0CduI3kp/Gd7NrDHe+LSAilYcfErnkFxSG/8DnDF2CI1wA4sEPDZX0TibMZo6PEnpwBFKP32X/t1IazgjMH7fe3ZZGsrr/GdWrKEE5cPGF6d9/BkzaiKrHBiifFdr4yHFKC/46pqFVr+oKkc=
The attached patch adds some rest calls to some subroutines in the
allegro's "test" program.
--
Milan Mimica
http://sparklet.sf.net
Index: tests/test.c
===================================================================
--- tests/test.c (revision 5789)
+++ tests/test.c (working copy)
@@ -255,7 +255,7 @@
oy = -1;
while (!next()) {
- rest(20);
+ rest(50);
poll_mouse();
if ((mouse_x != ox) || (mouse_y != oy)) {
@@ -1772,8 +1772,9 @@
release_screen();
- while (!next())
- ;
+ while (!next()) {
+ rest(50);
+ }
}
@@ -1846,6 +1847,7 @@
textout_centre_ex(screen, font, buf, SCREEN_W/2, yoff+152, palette_color[15], palette_color[0]);
}
poll_mouse();
+ rest(50);
} while (!mouse_b);
do {
@@ -1918,6 +1920,7 @@
rectfill(screen, xoff+110, yoff+90, xoff+130, yoff+110, palette_color[int_c1]);
rectfill(screen, xoff+150, yoff+90, xoff+170, yoff+110, palette_color[int_c2]);
rectfill(screen, xoff+190, yoff+90, xoff+210, yoff+110, palette_color[int_c3]);
+ rest(50);
}
remove_int(int1);
@@ -2117,6 +2120,7 @@
y = VIRTUAL_H;
scroll_screen(x, y);
+ rest(50);
}
do {
@@ -2299,6 +2303,7 @@
}
}
+ rest(50);
} while (c != 27);
return D_REDRAW;
@@ -2401,6 +2406,7 @@
ox = nx;
oy = ny;
+ rest(50);
}
xor_mode(FALSE);
@@ -2433,6 +2439,7 @@
do {
poll_mouse();
+ rest(50);
} while (mouse_b);
do {
@@ -2478,6 +2485,7 @@
if (keypressed())
k = readkey() & 0xff;
+ rest(50);
} while (k != 27);
return D_REDRAW;
@@ -3106,6 +3114,7 @@
break;
}
}
+ rest(50);
}
getout: