[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Antiright-devel] antiright/src/afract afract.c
From: |
Jeffrey Bedard |
Subject: |
[Antiright-devel] antiright/src/afract afract.c |
Date: |
Sun, 03 Jul 2005 23:33:59 -0400 |
CVSROOT: /cvsroot/antiright
Module name: antiright
Branch:
Changes by: Jeffrey Bedard <address@hidden> 05/07/04 03:33:59
Modified files:
src/afract : afract.c
Log message:
Added license statement. Formatted buffer so that lines do not wrap.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/afract/afract.c.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: antiright/src/afract/afract.c
diff -u antiright/src/afract/afract.c:1.1 antiright/src/afract/afract.c:1.2
--- antiright/src/afract/afract.c:1.1 Mon Jul 4 03:11:45 2005
+++ antiright/src/afract/afract.c Mon Jul 4 03:33:58 2005
@@ -1,3 +1,26 @@
+/*
+ AntiRight
+ (c) 2003-2005 Jeffrey Bedard
+ address@hidden
+
+ This file is part of AntiRight.
+
+ AntiRight is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ AntiRight is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with AntiRight; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301 USA
+*/
+
#include "../../lib/library.h"
#include "../bitmaps/handtoface.xpm"
@@ -109,7 +132,8 @@
antiright.graph.height);
antiright_draw_foreground(&buffer_drawing, 200, 200, 200);
fractal();
- XCopyArea(antiright.display, buffer, antiright.graph.drawing.window,
+ XCopyArea(antiright.display, buffer,
+ antiright.graph.drawing.window,
antiright.graph.drawing.gc, 0, 0, 256,256, 0, 0);
XFlush(antiright.display);
@@ -137,7 +161,8 @@
threshhold=1;
antiright_initialize_application(&argc, argv, "AFract");
- antiright_set_pixmap_from_data(antiright.parent_widget, handtoface_xpm);
+ antiright_set_pixmap_from_data(antiright.parent_widget,
+ handtoface_xpm);
ARCLARG;
form=antiright_form(antiright.parent_widget);
@@ -152,11 +177,9 @@
XtRealizeWidget(antiright.parent_widget);
antiright_form_positions(0, 80, 0, 80);
antiright_create_graph(form);
- XtRemoveAllCallbacks(antiright.graph.widget, XmNexposeCallback);
- /* XtAddCallback(antiright.graph.widget, */
-/* XmNexposeCallback, */
-/* expose_cb, */
-/* NULL); */
+ XtRemoveAllCallbacks(antiright.graph.widget,
+ XmNexposeCallback);
+
ARCLARG;
antiright_form_positions(80, 90, 0, 100);
iterate=antiright_button(form, "Iterate", iterate_cb, NULL);
@@ -170,8 +193,9 @@
antiright_label(form, "I:");
ARCLARG;
antiright_form_positions(10, 20, 80, 100);
- i_field=XmCreateTextField(form, "Iterations", antiright.arguments,
- antiright.arguments_int);
+ i_field=XmCreateTextField(form, "Iterations",
+ antiright.arguments,
+ antiright.arguments_int);
XtAddCallback(i_field, XmNactivateCallback, i_mvcb, NULL);
XtManageChild(i_field);
@@ -180,8 +204,9 @@
antiright_label(form, "T:");
ARCLARG;
antiright_form_positions(30, 40, 80, 100);
- t_field=XmCreateTextField(form, "Threshhold", antiright.arguments,
- antiright.arguments_int);
+ t_field=XmCreateTextField(form, "Threshhold",
+ antiright.arguments,
+ antiright.arguments_int);
XtAddCallback(t_field, XmNactivateCallback, t_mvcb, NULL);
XtManageChild(t_field);
@@ -206,11 +231,14 @@
XtManageChild(Q_field);
- buffer=XCreatePixmap(antiright.display, antiright.graph.drawing.window,
+ buffer=XCreatePixmap(antiright.display,
+ antiright.graph.drawing.window,
256, 256,
- DefaultDepth(antiright.display, antiright.screen));
+ DefaultDepth(antiright.display,
+ antiright.screen));
buffer_gc=XCreateGC(antiright.display, buffer, 0, NULL);
- antiright_drawing_initialize(antiright.graph.widget, &buffer_drawing);
+ antiright_drawing_initialize(antiright.graph.widget,
+ &buffer_drawing);
buffer_drawing.window=buffer;
buffer_drawing.gc=XCreateGC(antiright.display, buffer, 0, NULL);
iterate_cb();