From 7c0466867b7e9a897b678a515011db5e5eeb7700 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 11 Jan 2022 19:35:08 -0800 Subject: [PATCH] gvrender_core_pic.c: use a C99 bool for global 'onetime' --- plugin/core/gvrender_core_pic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/core/gvrender_core_pic.c b/plugin/core/gvrender_core_pic.c index b5d26f98a..fc303b2fe 100644 --- a/plugin/core/gvrender_core_pic.c +++ b/plugin/core/gvrender_core_pic.c @@ -10,6 +10,7 @@ #include "config.h" +#include #include #include #include @@ -29,7 +30,7 @@ typedef enum { FORMAT_PIC, } format_type; -static int onetime = TRUE; +static bool onetime = true; static double Fontscale; /* There are a couple of ways to generate output: @@ -195,7 +196,7 @@ static void pic_begin_page(GVJ_t * job) if (onetime && job->rotation && (job->rotation != 90)) { unsupported("rotation"); - onetime = FALSE; + onetime = false; } height = PS2INCH((double) (pbr.UR.y) - (double) (pbr.LL.y)); width = PS2INCH((double) (pbr.UR.x) - (double) (pbr.LL.x)); -- 2.40.0