From aa61d28eab8d7402912a2d3bc0334e092808b520 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Thu, 10 Nov 2022 22:08:24 +0200 Subject: Remove trailing spaces --- img-load.c | 10 +++++----- img-save-dialog.c | 18 +++++++++--------- img-save.c | 12 ++++++------ plugin-img.c | 8 ++++---- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/img-load.c b/img-load.c index d4f4bea..8edeca5 100644 --- a/img-load.c +++ b/img-load.c @@ -25,7 +25,7 @@ img_map_rgb565_to_rgb(const guint8 * src, guint8 * dest, size_t src_size) size_t s, d; /* - * 5+6+5=16bits (2 bytes) per pixel + * 5+6+5=16bits (2 bytes) per pixel */ for (s = 0, d = 0; s < src_size;) { @@ -68,7 +68,7 @@ img_load_image(const gchar * filename, ImageParasite * meta, GError ** error) } /* - * Read common header + * Read common header */ nread = fread((void *)&hdr, sizeof(hdr), 1, fp); if (nread != 1) @@ -85,7 +85,7 @@ img_load_image(const gchar * filename, ImageParasite * meta, GError ** error) hdr.height = GUINT32_FROM_LE(hdr.height); /* - * Width and height are TOTAL ones + * Width and height are TOTAL ones */ if ((0 == hdr.ncols) || (0 == hdr.nrows) || (hdr.width % hdr.ncols) || (hdr.height % hdr.nrows)) @@ -112,7 +112,7 @@ img_load_image(const gchar * filename, ImageParasite * meta, GError ** error) src_size *= 3; image_type = GIMP_RGB_IMAGE; /* - * Read color key + * Read color key */ nread = fread((void *)&ckey, sizeof(ckey), 1, fp); if (nread != 1) @@ -144,7 +144,7 @@ img_load_image(const gchar * filename, ImageParasite * meta, GError ** error) D(("Has color key: (%1u, %1u, %1u)\n", ckey.R, ckey.G, ckey.B))); /* - * We are ready to make image with layers + * We are ready to make image with layers */ image = gimp_image_new(width, height, GIMP_RGB); gimp_image_set_filename(image, filename); diff --git a/img-save-dialog.c b/img-save-dialog.c index ce7c3ef..b12acee 100644 --- a/img-save-dialog.c +++ b/img-save-dialog.c @@ -93,7 +93,7 @@ img_save_dialog(gint32 image, ImageParasite * plugin) gtk_widget_show(dialog); /* - * Radio buttons to select file format + * Radio buttons to select file format */ fmt_frame = gimp_frame_new("Image format"); fmt_rgb565 = gtk_radio_button_new_with_label(NULL, FMT[FMT_RGB565]); @@ -109,13 +109,13 @@ img_save_dialog(gint32 image, ImageParasite * plugin) gtk_widget_show(fmt_rgba); /* - * Horizontal main box + * Horizontal main box */ hbox = gtk_hbox_new(TRUE, 2); gtk_widget_show(hbox); /* - * Vertical box for radio buttons + * Vertical box for radio buttons */ fmt_align = gtk_alignment_new(0.5, 0, 0, 0); gtk_widget_show(fmt_align); @@ -129,13 +129,13 @@ img_save_dialog(gint32 image, ImageParasite * plugin) gtk_box_pack_start(GTK_BOX(fmt_vbox), fmt_rgba, TRUE, TRUE, 0); /* - * Allow color key for RGB and RGBA + * Allow color key for RGB and RGBA */ g_signal_connect(G_OBJECT(fmt_rgb), "clicked", G_CALLBACK(on_RGB), NULL); g_signal_connect(G_OBJECT(fmt_rgba), "clicked", G_CALLBACK(on_RGB), NULL); /* - * Vertical box for color key + * Vertical box for color key */ ckey_align = gtk_alignment_new(0.5, 0, 0, 0); gtk_widget_show(ckey_align); @@ -163,14 +163,14 @@ img_save_dialog(gint32 image, ImageParasite * plugin) g_signal_connect(G_OBJECT(ckey_image), "button-press-event", G_CALLBACK(on_image_click), NULL); /* - * Assemble all together + * Assemble all together */ gtk_box_pack_start(GTK_BOX(hbox), fmt_align, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox), ckey_align, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), hbox, TRUE, TRUE, 0); /* - * Set initial parameters + * Set initial parameters */ switch (plugin->format) { @@ -193,12 +193,12 @@ img_save_dialog(gint32 image, ImageParasite * plugin) on_ckey_use(ckey_use, NULL); /* - * Run the dialog + * Run the dialog */ response = gimp_dialog_run(GIMP_DIALOG(dialog)); /* - * Get new parameters + * Get new parameters */ if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(fmt_rgb565))) plugin->format = FMT_RGB565; diff --git a/img-save.c b/img-save.c index f33d6f3..0f4aeaa 100644 --- a/img-save.c +++ b/img-save.c @@ -126,7 +126,7 @@ rgb_to_rgb565(const guint8 * c, guint16 * res) * 11111 000000 11111 * | high || low | * | 16 bits | - * + * */ (*res) = 0; (*res) |= ((guint16) (c[0]) >> 3); /* Red */ @@ -317,7 +317,7 @@ img_save_image(gint32 image, const ImageParasite * plugin, } #endif /* - * Should call sanity_check() for all secure checks + * Should call sanity_check() for all secure checks */ layers = gimp_image_get_layers(image, &nlayers); @@ -326,7 +326,7 @@ img_save_image(gint32 image, const ImageParasite * plugin, npixels = width * height; /* - * Making file header + * Making file header */ hdr.fmt = plugin->format; hdr.ncols = 1; /* Always one column */ @@ -353,7 +353,7 @@ img_save_image(gint32 image, const ImageParasite * plugin, } /* - * Write file + * Write file */ D(("Writing header: format: %s (%1u), frames: %ux%u, size: %ux%u\n", FMT[hdr.fmt], hdr.fmt, hdr.ncols, hdr.nrows, hdr.width, hdr.height)); @@ -369,7 +369,7 @@ img_save_image(gint32 image, const ImageParasite * plugin, } /* - * File format specific preparations + * File format specific preparations */ data_size = width * height; switch (hdr.fmt) @@ -407,7 +407,7 @@ img_save_image(gint32 image, const ImageParasite * plugin, } /* - * Writing each layer (frame) + * Writing each layer (frame) */ data = g_new(guint8, data_size); pixels = g_new(guint8, npixels * 4); /* Enough for RGB or RGBA */ diff --git a/plugin-img.c b/plugin-img.c index 359def6..2b66a83 100644 --- a/plugin-img.c +++ b/plugin-img.c @@ -102,7 +102,7 @@ run(const gchar * name, gint nparams, const GimpParam * param, values[0].data.d_status = GIMP_PDB_EXECUTION_ERROR; /* - * Load image + * Load image */ if (strcmp(name, LOAD_PROC) == 0) { @@ -139,7 +139,7 @@ run(const gchar * name, gint nparams, const GimpParam * param, } /* - * Save image + * Save image */ else if (strcmp(name, SAVE_PROC) == 0) { @@ -175,7 +175,7 @@ run(const gchar * name, gint nparams, const GimpParam * param, } /* - * Allow user to override default values + * Allow user to override default values */ if ((run_mode == GIMP_RUN_INTERACTIVE) && (status == GIMP_PDB_SUCCESS)) @@ -218,7 +218,7 @@ run(const gchar * name, gint nparams, const GimpParam * param, } /* - * Delete temporary image after export + * Delete temporary image after export */ if (export == GIMP_EXPORT_EXPORT) { -- cgit v1.2.3