[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: i_callbacks.c
User: cnieves
Date: 06/09/22 14:48:09
Modified: . i_callbacks.c x_image.c
Log:
Use gd 2.0.x library instead of libgdgeda.
libgdgeda is not used anymore. Work based on a patch by
Wojciech Kazubski (patch #1479983).
Revision Changes Path
1.61 +3 -3 eda/geda/gaf/gschem/src/i_callbacks.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: i_callbacks.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/i_callbacks.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -b -r1.60 -r1.61
--- i_callbacks.c 6 Aug 2006 19:23:19 -0000 1.60
+++ i_callbacks.c 22 Sep 2006 18:48:08 -0000 1.61
@@ -489,13 +489,13 @@
exit_if_null(w_current);
#if 0
-#ifndef HAS_LIBGDGEDA
+#ifndef HAS_LIBGD
/*! \todo integrate these to messages */
fprintf(stderr,
- _("libgdgeda not installed or disabled, "
+ _("libgd not installed or disabled, "
"so this feature is disabled\n"));
s_log_message(
- _("libgdgeda not installed or disabled, "
+ _("libgd not installed or disabled, "
"so this feature is disabled\n"));
return;
#endif
1.25 +6 -5 eda/geda/gaf/gschem/src/x_image.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: x_image.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_image.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- x_image.c 6 Aug 2006 16:45:29 -0000 1.24
+++ x_image.c 22 Sep 2006 18:48:09 -0000 1.25
@@ -228,7 +228,7 @@
int save_height, save_width;
int save_page_left, save_page_right, save_page_top, save_page_bottom;
int page_width, page_height, page_center_left, page_center_top;
-#ifndef HAS_LIBGDGEDA
+#ifndef HAS_LIBGD
GdkPixbuf *pixbuf;
char *filetype;
#endif
@@ -276,10 +276,11 @@
selection2_head);
-#ifdef HAS_LIBGDGEDA
+#ifdef HAS_LIBGD
/* try to use recalc here */
o_redraw_all(w_current);
+ printf("Calling f_image_write.\n");
f_image_write(w_current, filename, width, height,
w_current->image_color);
#else
@@ -321,7 +322,7 @@
/* try to use recalc here... */
o_redraw_all(w_current);
-#ifdef HAS_LIBGDGEDA
+#ifdef HAS_LIBGD
if (w_current->image_color == TRUE) {
s_log_message(_("Wrote color image to [%s] [%d x %d]\n"), filename, width, height);
} else {
@@ -646,12 +647,12 @@
bottom = size_y;
/* ------------------ Begin optional code ------------------------ */
/* If the the code in this region is commented, the PNG returned will
- be the same as the one returned using libgdgeda.
+ be the same as the one returned using libgd.
I mean: there will be some border all around the schematic.
This code is used to adjust the schematic to the border of the image */
/* Do a zoom extents to get fit all the schematic in the window */
- /* Commented so the image returned will be the same as with libgdgeda */
+ /* Commented so the image returned will be the same as with libgd */
a_zoom_extents (&toplevel,
toplevel.page_current->object_head,
A_PAN_DONT_REDRAW);
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs