[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (7937b28a5be99e9d06398c2e170dc1a4b5318749)
The branch, master has been updated
via 7937b28a5be99e9d06398c2e170dc1a4b5318749 (commit)
from 352d0fcf4ba5d5d72b9899eceb4d3ff41df3b257 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/hid/gtk/gtkhid-gdk.c | 36 ------------------------------------
1 files changed, 0 insertions(+), 36 deletions(-)
=================
Commit Messages
=================
commit 7937b28a5be99e9d06398c2e170dc1a4b5318749
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
hid/gtk: Remove duplicated render pass in ghid_pinout_preview_expose()
This looks like it was a copy+paste error.
:100644 100644 bf05b6b... 817a0fa... M src/hid/gtk/gtkhid-gdk.c
=========
Changes
=========
commit 7937b28a5be99e9d06398c2e170dc1a4b5318749
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
hid/gtk: Remove duplicated render pass in ghid_pinout_preview_expose()
This looks like it was a copy+paste error.
diff --git a/src/hid/gtk/gtkhid-gdk.c b/src/hid/gtk/gtkhid-gdk.c
index bf05b6b..817a0fa 100644
--- a/src/hid/gtk/gtkhid-gdk.c
+++ b/src/hid/gtk/gtkhid-gdk.c
@@ -1213,42 +1213,6 @@ ghid_pinout_preview_expose (GtkWidget *widget,
gport->height = save_height;
gport->view_x0 = save_left;
gport->view_y0 = save_top;
- save_top = gport->view_y0;
- save_view_width = gport->view_width;
- save_view_height = gport->view_height;
-
- /* Setup drawable and zoom factor for drawing routines
- */
- save_drawable = gport->drawable;
-
- gdk_window_get_geometry (widget->window, 0, 0, &da_w, &da_h, 0);
- xz = (double) pinout->x_max / da_w;
- yz = (double) pinout->y_max / da_h;
- if (xz > yz)
- gport->zoom = xz;
- else
- gport->zoom = yz;
-
- gport->drawable = widget->window;
- gport->width = da_w;
- gport->height = da_h;
- gport->view_width = da_w * gport->zoom;
- gport->view_height = da_h * gport->zoom;
- gport->view_x0 = (pinout->x_max - gport->view_width) / 2;
- gport->view_y0 = (pinout->y_max - gport->view_height) / 2;
-
- /* clear background */
- gdk_draw_rectangle (widget->window, priv->bg_gc, TRUE, 0, 0, da_w, da_h);
-
- /* call the drawing routine */
- hid_expose_callback (&ghid_hid, NULL, &pinout->element);
-
- gport->drawable = save_drawable;
- gport->zoom = save_zoom;
- gport->width = save_width;
- gport->height = save_height;
- gport->view_x0 = save_left;
- gport->view_y0 = save_top;
gport->view_width = save_view_width;
gport->view_height = save_view_height;
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs