r5380 - trunk/eda/fped
werner at docs.openmoko.org
werner at docs.openmoko.org
Tue Aug 4 01:23:00 CEST 2009
Author: werner
Date: 2009-08-04 01:23:00 +0200 (Tue, 04 Aug 2009)
New Revision: 5380
Modified:
trunk/eda/fped/gui.c
trunk/eda/fped/gui_inst.c
Log:
- before changing the world, always deselect (reported by Dave Ball)
- gui_draw_pad: add 10% of slack so that pad names are upright unless we really
need to rotate
Modified: trunk/eda/fped/gui.c
===================================================================
--- trunk/eda/fped/gui.c 2009-08-03 22:58:15 UTC (rev 5379)
+++ trunk/eda/fped/gui.c 2009-08-03 23:23:00 UTC (rev 5380)
@@ -498,10 +498,8 @@
static void select_frame(struct frame *frame)
{
- if (active_frame) {
+ if (active_frame)
label_in_box_bg(active_frame->label, COLOR_FRAME_UNSELECTED);
- inst_deselect();
- }
active_frame = frame;
change_world();
}
@@ -648,6 +646,7 @@
void change_world(void)
{
+ inst_deselect();
status_begin_reporting();
instantiate();
label_in_box_bg(active_frame->label, COLOR_FRAME_SELECTED);
Modified: trunk/eda/fped/gui_inst.c
===================================================================
--- trunk/eda/fped/gui_inst.c 2009-08-03 22:58:15 UTC (rev 5379)
+++ trunk/eda/fped/gui_inst.c 2009-08-03 23:23:00 UTC (rev 5380)
@@ -257,7 +257,7 @@
c = add_vec(min, max);
h = min.y-max.y;
w = max.x-min.x;
- render_text(DA, gc, c.x/2, c.y/2, w <= h ? 0 : 90, self->u.name,
+ render_text(DA, gc, c.x/2, c.y/2, w <= h*1.1 ? 0 : 90, self->u.name,
PAD_FONT, 0.5, 0.5,
w-2*PAD_BORDER, h-2*PAD_BORDER);
}
More information about the commitlog
mailing list