mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-27 04:08:25 +02:00
sch2fig/lib.c (draw_pin_num): correct pin number flipping
This commit is contained in:
parent
e5ba111258
commit
ff12e388e2
@ -282,10 +282,27 @@ static void draw_pin_num(const struct comp *comp, const struct pin_obj *pin,
|
|||||||
|
|
||||||
text_rot(&txt, matrix_to_angle(m) % 180);
|
text_rot(&txt, matrix_to_angle(m) % 180);
|
||||||
if (matrix_is_mirrored(m)) {
|
if (matrix_is_mirrored(m)) {
|
||||||
if ((txt.rot % 180) == 0)
|
switch (txt.rot) {
|
||||||
|
case 0:
|
||||||
txt.hor = text_flip(txt.hor);
|
txt.hor = text_flip(txt.hor);
|
||||||
else
|
break;
|
||||||
txt.vert = text_flip(txt.vert);
|
case 90:
|
||||||
|
break;
|
||||||
|
case 180:
|
||||||
|
txt.hor = text_flip(txt.hor);
|
||||||
|
break;
|
||||||
|
case 270:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (txt.rot) {
|
||||||
|
case 180:
|
||||||
|
case 270:
|
||||||
|
text_flip_x(&txt);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
text_fig(&txt, COLOR_PIN_NUMBER, LAYER_PIN_NUMBER);
|
text_fig(&txt, COLOR_PIN_NUMBER, LAYER_PIN_NUMBER);
|
||||||
|
Loading…
Reference in New Issue
Block a user