cvs: php-gtk /test scribble.php
| From: | Andrei Zmievski | Date: | Thu, 19 Jul 2001 20:04:14 +0000 |
| Subject: | cvs: php-gtk /test scribble.php | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-2292@lists.php.net to get a copy of this message | ||
andrei Thu Jul 19 16:04:14 2001 EDT
Modified files:
/php-gtk/test scribble.php
Log:
Draw circle instead of square, it's less ugly that way.
Index: php-gtk/test/scribble.php
diff -u php-gtk/test/scribble.php:1.1 php-gtk/test/scribble.php:1.2
--- php-gtk/test/scribble.php:1.1 Thu Jul 19 01:24:48 2001
+++ php-gtk/test/scribble.php Thu Jul 19 16:04:14 2001
@@ -1,11 +1,12 @@
<?php
-/* $Id: scribble.php,v 1.1 2001/07/19 05:24:48 andrei Exp $ */
+/* $Id: scribble.php,v 1.2 2001/07/19 20:04:14 andrei Exp $ */
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
dl('php_gtk.dll');
else
dl('php_gtk.so');
+$pixmap = null;
function configure_event($widget, $event)
{
@@ -78,8 +79,8 @@
{
global $pixmap;
- gdk::draw_rectangle($pixmap, $widget->style->black_gc,
- true, $x - 5, $y - 5, 10, 10);
+ gdk::draw_arc($pixmap, $widget->style->black_gc,
+ true, $x - 5, $y - 5, 10, 10, 0, 64 * 360);
$widget->draw($x - 5, $y - 5, 10, 10);
}