@@ -160,7 +160,7 @@ static bool pd_paint_boxshadow_left_blur(pd_boxshadow_context_t *ctx)
160160 right = rect .x + rect .width ;
161161 gradient_init (& g , BLUR_WIDTH (ctx -> shadow ));
162162 if (!pd_rect_overlap (& ctx -> paint -> rect , & rect , & rect )) {
163- return PD_FALSE ;
163+ return false ;
164164 }
165165 right -= rect .x ;
166166 paint_rect .width = rect .width ;
@@ -178,7 +178,7 @@ static bool pd_paint_boxshadow_left_blur(pd_boxshadow_context_t *ctx)
178178 * p = color ;
179179 }
180180 }
181- return PD_TRUE ;
181+ return true ;
182182}
183183
184184static bool pd_paint_boxshadow_right_blur (pd_boxshadow_context_t * ctx )
@@ -201,7 +201,7 @@ static bool pd_paint_boxshadow_right_blur(pd_boxshadow_context_t *ctx)
201201 left = rect .x ;
202202 gradient_init (& g , BLUR_WIDTH (ctx -> shadow ));
203203 if (!pd_rect_overlap (& ctx -> paint -> rect , & rect , & rect )) {
204- return PD_FALSE ;
204+ return false ;
205205 }
206206 left -= rect .x + 1 ;
207207 paint_rect .width = rect .width ;
@@ -219,7 +219,7 @@ static bool pd_paint_boxshadow_right_blur(pd_boxshadow_context_t *ctx)
219219 * p = color ;
220220 }
221221 }
222- return PD_TRUE ;
222+ return true ;
223223}
224224
225225static bool pd_paint_boxshadow_top_blur (pd_boxshadow_context_t * ctx )
@@ -242,7 +242,7 @@ static bool pd_paint_boxshadow_top_blur(pd_boxshadow_context_t *ctx)
242242 bottom = rect .y + rect .height ;
243243 gradient_init (& g , BLUR_WIDTH (ctx -> shadow ));
244244 if (!pd_rect_overlap (& ctx -> paint -> rect , & rect , & rect )) {
245- return PD_FALSE ;
245+ return false ;
246246 }
247247 bottom -= rect .y ;
248248 paint_rect .width = rect .width ;
@@ -260,7 +260,7 @@ static bool pd_paint_boxshadow_top_blur(pd_boxshadow_context_t *ctx)
260260 * p = color ;
261261 }
262262 }
263- return PD_TRUE ;
263+ return true ;
264264}
265265
266266static bool pd_paint_boxshadow_bottom_blur (pd_boxshadow_context_t * ctx )
@@ -283,7 +283,7 @@ static bool pd_paint_boxshadow_bottom_blur(pd_boxshadow_context_t *ctx)
283283 top = rect .y ;
284284 gradient_init (& g , BLUR_WIDTH (ctx -> shadow ));
285285 if (!pd_rect_overlap (& ctx -> paint -> rect , & rect , & rect )) {
286- return PD_FALSE ;
286+ return false ;
287287 }
288288 top -= rect .y + 1 ;
289289 paint_rect .width = rect .width ;
@@ -300,7 +300,7 @@ static bool pd_paint_boxshadow_bottom_blur(pd_boxshadow_context_t *ctx)
300300 * p = color ;
301301 }
302302 }
303- return PD_TRUE ;
303+ return true ;
304304}
305305
306306static bool pd_paint_boxshadow_circle_blur (pd_boxshadow_context_t * ctx ,
@@ -327,7 +327,7 @@ static bool pd_paint_boxshadow_circle_blur(pd_boxshadow_context_t *ctx,
327327 pd_color_t * p ;
328328
329329 if (!pd_rect_overlap (& ctx -> paint -> rect , circle_rect , & rect )) {
330- return PD_FALSE ;
330+ return false ;
331331 }
332332 color = ctx -> shadow -> color ;
333333 center_x = center_x + circle_rect -> x - rect .x - 0.5 ;
@@ -370,7 +370,7 @@ static bool pd_paint_boxshadow_circle_blur(pd_boxshadow_context_t *ctx,
370370 * p = color ;
371371 }
372372 }
373- return PD_TRUE ;
373+ return true ;
374374}
375375
376376static bool pd_paint_boxshadow_top_left_blur (pd_boxshadow_context_t * ctx )
@@ -610,7 +610,7 @@ int pd_paint_boxshadow(pd_context_t *ctx, const pd_boxshadow_t *shadow,
610610 sd_ctx .paint = & tmp ;
611611 pd_canvas_init (& tmp .canvas );
612612 tmp .rect = ctx -> rect ;
613- tmp .with_alpha = PD_TRUE ;
613+ tmp .with_alpha = true ;
614614 tmp .canvas .color_type = PD_COLOR_TYPE_ARGB ;
615615 pd_canvas_create (& sd_ctx .paint -> canvas , ctx -> rect .width ,
616616 ctx -> rect .height );
0 commit comments