From c3a51a49bf07c663b80a6a039f64d8cc079323b4 Mon Sep 17 00:00:00 2001 From: Ben Wiley Sittler Date: Sat, 1 Nov 2008 01:32:17 +0000 Subject: [PATCH] change to allow use with cocoa driver; also, a keypress now stops these demos early --- caca-php/examples/dithering.php | 2 +- caca-php/examples/polyline.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/caca-php/examples/dithering.php b/caca-php/examples/dithering.php index 748b807..22661f9 100755 --- a/caca-php/examples/dithering.php +++ b/caca-php/examples/dithering.php @@ -27,6 +27,6 @@ if (!$display) caca_dither_bitmap($canvas, 0, 0, caca_get_canvas_width($canvas), caca_get_canvas_height($canvas), $dither, $img); caca_refresh_display($display); -sleep(5); +caca_get_event($display, CACA_EVENT_KEY_PRESS, 5000000); ?> diff --git a/caca-php/examples/polyline.php b/caca-php/examples/polyline.php index 6b39d3d..a52dbcf 100755 --- a/caca-php/examples/polyline.php +++ b/caca-php/examples/polyline.php @@ -48,6 +48,6 @@ for ($i = 0; $i < 10; $i++) { caca_put_str($canvas, 1, 1, "Caca forever..."); caca_refresh_display($display); -sleep(5); +caca_get_event($display, CACA_EVENT_KEY_PRESS, 5000000); ?>