mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-27 01:59:42 +02:00
sch2fig/fig.c (fig_label): initialize dx, dy
This commit is contained in:
parent
dd5f9d2128
commit
09bd2ca38d
@ -88,7 +88,7 @@ void fig_label(int x, int y, const char *s, int dir, int dim,
|
||||
.hor = 0,
|
||||
.vert = text_min,
|
||||
};
|
||||
int dx, dy;
|
||||
int dx = 0, dy = 0;
|
||||
|
||||
switch (dir) {
|
||||
case 0: /* right */
|
||||
@ -389,9 +389,9 @@ void fig_arc(int x, int y, int r, int sa, int ea,
|
||||
void fig_text(int x, int y, const char *s, unsigned size,
|
||||
enum text_align align, int rot, unsigned color, unsigned layer)
|
||||
{
|
||||
// Type Depth FontSiz Height
|
||||
// Just Pen Angle Length
|
||||
// Color Font Flags X Y
|
||||
// Type Depth FontSiz Height
|
||||
// Just Pen Angle Length
|
||||
// Color Font Flags X Y
|
||||
printf("4 %u %d %d -1 %d %f %f 4 0.0 0.0 %d %d %s\\001\n",
|
||||
align, color, layer, FONT_HELVETICA_BOLD,
|
||||
pt(size), rot / 180.0 * M_PI, cx(x), cy(y), s);
|
||||
|
Loading…
Reference in New Issue
Block a user