Index: trunk/src_plugins/export_png/draw_png.c =================================================================== --- trunk/src_plugins/export_png/draw_png.c (revision 36293) +++ trunk/src_plugins/export_png/draw_png.c (revision 36294) @@ -61,8 +61,8 @@ #define SCALE(w) ((int)rnd_round((w)/pctx->scale)) #define SCALE_X(x) ((int)rnd_round(((x) - pctx->x_shift)/pctx->scale)) -#define SCALE_Y(y) ((int)rnd_round(((pctx->show_solder_side ? (pctx->hidlib->size_y-(y)) : (y)) - pctx->y_shift)/pctx->scale)) -#define SWAP_IF_SOLDER(a,b) do { int c; if (pctx->show_solder_side) { c=a; a=b; b=c; }} while (0) +#define SCALE_Y(y) ((int)rnd_round(((pctx->ymirror ? (pctx->hidlib->size_y-(y)) : (y)) - pctx->y_shift)/pctx->scale)) +#define SWAP_IF_SOLDER(a,b) do { int c; if (pctx->ymirror) { c=a; a=b; b=c; }} while (0) /* Used to detect non-trivial outlines */ #define NOT_EDGE_X(x) ((x) != 0 && (x) != pctx->hidlib->size_x) @@ -683,7 +683,7 @@ in pcb, 0 degrees is to the left and +90 degrees is down */ start_angle = 180 - start_angle; delta_angle = -delta_angle; - if (pctx->show_solder_side) { + if (pctx->ymirror) { start_angle = -start_angle; delta_angle = -delta_angle; } Index: trunk/src_plugins/export_png/draw_png.h =================================================================== --- trunk/src_plugins/export_png/draw_png.h (revision 36293) +++ trunk/src_plugins/export_png/draw_png.h (revision 36294) @@ -43,7 +43,7 @@ double scale; /* should be 1 by default */ double bloat; rnd_coord_t x_shift, y_shift; - int show_solder_side, in_mono; + int ymirror, in_mono; /* public: result */ long png_drawn_objs; Index: trunk/src_plugins/export_png/png.c =================================================================== --- trunk/src_plugins/export_png/png.c (revision 36293) +++ trunk/src_plugins/export_png/png.c (revision 36294) @@ -395,7 +395,7 @@ static void png_head(void) { - pctx->show_solder_side = conf_core.editor.show_solder_side; + pctx->ymirror = conf_core.editor.show_solder_side; rnd_png_start(pctx); png_photo_head(); }