From c7bd4a151a2e94fd4012735760eb1b38b89435b6 Mon Sep 17 00:00:00 2001 From: EDT 1998 Matthew Wilson Date: Mon, 1 Jun 1998 05:07:31 +0000 Subject: [PATCH] fix a comment. :) fix my last entry --Matt Mon Jun 1 01:05:52 EDT 1998 Matthew Wilson * plug-ins/grid.c: fix a comment. :) * ChangeLog: fix my last entry --Matt --- ChangeLog | 11 +++++++++++ plug-ins/common/grid.c | 18 +++++++++--------- plug-ins/grid/grid.c | 18 +++++++++--------- 3 files changed, 29 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index a7e63c5a10..4f341fd388 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +Mon Jun 1 01:05:52 EDT 1998 Matthew Wilson + + * plug-ins/grid.c: fix a comment. :) + * ChangeLog: fix my last entry + +Sun May 31 21:50:12 EDT 1998 Matthew Wilson + + * plug-ins/deinterlace/deinterlace.c: patch from sjburges + to prevent out of bounds indexing array (anyone see a pattern + here?) + Sun May 31 15:35:33 PDT 1998 Manish Singh * gimptool.in: use test -r instead of test -e for portability diff --git a/plug-ins/common/grid.c b/plug-ins/common/grid.c index abebe9d4e8..9111188c48 100644 --- a/plug-ins/common/grid.c +++ b/plug-ins/common/grid.c @@ -84,7 +84,7 @@ MAIN () args, return_vals); } -static void +static void run (char *name, int n_params, GParam * param, int *nreturn_vals, GParam ** return_vals) { @@ -166,7 +166,7 @@ run (char *name, int n_params, GParam * param, int *nreturn_vals, values[0].data.d_status = status; } -static void +static void doit (GDrawable * drawable) { GPixelRgn srcPR, destPR; @@ -191,7 +191,7 @@ doit (GDrawable * drawable) height = drawable->height; bytes = drawable->bpp; - if (gimp_drawable_has_alpha (drawable->id)) + if (gimp_drawable_has_alpha (drawable->id)) { color[bytes - 1] = 0xff; } @@ -202,7 +202,7 @@ doit (GDrawable * drawable) /* First off, copy the old one to the new one. */ copybuf = malloc (width * bytes); - + for (h = sy1; h < sy2; h++) { gimp_pixel_rgn_get_row (&srcPR, copybuf, sx1, h, (sx2-sx1)); @@ -217,7 +217,7 @@ doit (GDrawable * drawable) } } else - { /* Just copy shit */ + { for (w = sx1; w < sx2; w++) { if ((w - my_config.x_offset) % my_config.width == 0) @@ -244,20 +244,20 @@ doit (GDrawable * drawable) * GUI stuff */ -static void +static void close_callback (GtkWidget * widget, gpointer data) { gtk_main_quit (); } -static void +static void ok_callback (GtkWidget * widget, gpointer data) { run_flag = 1; gtk_widget_destroy (GTK_WIDGET (data)); } -static void +static void entry_callback (GtkWidget * widget, gpointer data) { if (data == &my_config.width) @@ -270,7 +270,7 @@ entry_callback (GtkWidget * widget, gpointer data) my_config.y_offset = atoi (gtk_entry_get_text (GTK_ENTRY (widget))); } -static gint +static gint dialog () { GtkWidget *dlg; diff --git a/plug-ins/grid/grid.c b/plug-ins/grid/grid.c index abebe9d4e8..9111188c48 100644 --- a/plug-ins/grid/grid.c +++ b/plug-ins/grid/grid.c @@ -84,7 +84,7 @@ MAIN () args, return_vals); } -static void +static void run (char *name, int n_params, GParam * param, int *nreturn_vals, GParam ** return_vals) { @@ -166,7 +166,7 @@ run (char *name, int n_params, GParam * param, int *nreturn_vals, values[0].data.d_status = status; } -static void +static void doit (GDrawable * drawable) { GPixelRgn srcPR, destPR; @@ -191,7 +191,7 @@ doit (GDrawable * drawable) height = drawable->height; bytes = drawable->bpp; - if (gimp_drawable_has_alpha (drawable->id)) + if (gimp_drawable_has_alpha (drawable->id)) { color[bytes - 1] = 0xff; } @@ -202,7 +202,7 @@ doit (GDrawable * drawable) /* First off, copy the old one to the new one. */ copybuf = malloc (width * bytes); - + for (h = sy1; h < sy2; h++) { gimp_pixel_rgn_get_row (&srcPR, copybuf, sx1, h, (sx2-sx1)); @@ -217,7 +217,7 @@ doit (GDrawable * drawable) } } else - { /* Just copy shit */ + { for (w = sx1; w < sx2; w++) { if ((w - my_config.x_offset) % my_config.width == 0) @@ -244,20 +244,20 @@ doit (GDrawable * drawable) * GUI stuff */ -static void +static void close_callback (GtkWidget * widget, gpointer data) { gtk_main_quit (); } -static void +static void ok_callback (GtkWidget * widget, gpointer data) { run_flag = 1; gtk_widget_destroy (GTK_WIDGET (data)); } -static void +static void entry_callback (GtkWidget * widget, gpointer data) { if (data == &my_config.width) @@ -270,7 +270,7 @@ entry_callback (GtkWidget * widget, gpointer data) my_config.y_offset = atoi (gtk_entry_get_text (GTK_ENTRY (widget))); } -static gint +static gint dialog () { GtkWidget *dlg;