瀏覽代碼

change to allow use with cocoa driver; also, a keypress now stops these demos early

tags/v0.99.beta17
Ben Wiley Sittler bsittler 16 年之前
父節點
當前提交
c3a51a49bf
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      caca-php/examples/dithering.php
  2. +1
    -1
      caca-php/examples/polyline.php

+ 1
- 1
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);

?>

+ 1
- 1
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);

?>

Loading…
取消
儲存