use #if HAS_CAIRO!=1 indtead of HAS_CAIRO==0

This commit is contained in:
Stefan Frederik 2020-12-07 20:12:52 +01:00
parent bb64297b6e
commit 89da7d9ffd
2 changed files with 4 additions and 4 deletions

View File

@ -611,7 +611,7 @@ void draw_symbol(int what,int c, int n,int layer,short tmp_flip, short rot,
(text.rot + ( (flip && (text.rot & 1) ) ? rot+2 : rot) ) & 0x3,
flip^text.flip, text.hcenter, text.vcenter,
x0+x1, y0+y1, text.xscale, text.yscale);
#if HAS_CAIRO==0
#if HAS_CAIRO!=1
drawrect(textlayer, END, 0.0, 0.0, 0.0, 0.0, 0);
drawline(textlayer, END, 0.0, 0.0, 0.0, 0.0, 0);
#endif
@ -1754,7 +1754,7 @@ void draw(void)
cairo_restore(xctx->cairo_save_ctx);
}
#endif
#if HAS_CAIRO==0
#if HAS_CAIRO!=1
drawrect(textlayer, END, 0.0, 0.0, 0.0, 0.0, 0);
drawline(textlayer, END, 0.0, 0.0, 0.0, 0.0, 0);
#endif

View File

@ -861,7 +861,7 @@ void copy_objects(int what)
xctx->text[xctx->texts].hcenter, xctx->text[xctx->texts].vcenter,
xctx->rx1+xctx->deltax,xctx->ry1+xctx->deltay,
xctx->text[xctx->texts].xscale, xctx->text[xctx->texts].yscale);
#if HAS_CAIRO==0
#if HAS_CAIRO!=1
drawrect(textlayer, END, 0.0, 0.0, 0.0, 0.0, 0);
drawline(textlayer, END, 0.0, 0.0, 0.0, 0.0, 0);
#endif
@ -1407,7 +1407,7 @@ void move_objects(int what, int merge, double dx, double dy)
xctx->text[n].rot, xctx->text[n].flip, xctx->text[n].hcenter, xctx->text[n].vcenter,
xctx->text[n].x0, xctx->text[n].y0,
xctx->text[n].xscale, xctx->text[n].yscale);
#if HAS_CAIRO==0
#if HAS_CAIRO==0!=1
drawrect(textlayer, END, 0.0, 0.0, 0.0, 0.0, 0);
drawline(textlayer, END, 0.0, 0.0, 0.0, 0.0, 0);
#endif