1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-27 01:53:44 +02:00

sch2fig/lib.c (draw_text): also support mirroring

test.sch now renders correctly.
This commit is contained in:
Werner Almesberger 2016-07-28 15:49:14 -03:00
parent 7efb3e7e7e
commit 8830b9a223

View File

@ -392,6 +392,21 @@ static void draw_text(const struct text_obj *text, int m[6])
default:
break;
}
if (matrix_is_mirrored(m))
switch (txt.rot) {
case 0:
case 180:
txt.hor = text_flip(txt.hor);
break;
case 90:
case 270:
txt.vert = text_flip(txt.vert);
break;
default:
abort();
}
text_fig(&txt, COLOR_COMP_DWG, WIDTH_COMP_DWG);
}