mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-23 08:57:10 +02:00
sch2fig/lib.c (draw_text): also support mirroring
test.sch now renders correctly.
This commit is contained in:
parent
7efb3e7e7e
commit
8830b9a223
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user