@@ -160,7 +160,7 @@ static bool pd_paint_boxshadow_left_blur(pd_boxshadow_context_t *ctx)
160
160
right = rect .x + rect .width ;
161
161
gradient_init (& g , BLUR_WIDTH (ctx -> shadow ));
162
162
if (!pd_rect_overlap (& ctx -> paint -> rect , & rect , & rect )) {
163
- return PD_FALSE ;
163
+ return false ;
164
164
}
165
165
right -= rect .x ;
166
166
paint_rect .width = rect .width ;
@@ -178,7 +178,7 @@ static bool pd_paint_boxshadow_left_blur(pd_boxshadow_context_t *ctx)
178
178
* p = color ;
179
179
}
180
180
}
181
- return PD_TRUE ;
181
+ return true ;
182
182
}
183
183
184
184
static 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)
201
201
left = rect .x ;
202
202
gradient_init (& g , BLUR_WIDTH (ctx -> shadow ));
203
203
if (!pd_rect_overlap (& ctx -> paint -> rect , & rect , & rect )) {
204
- return PD_FALSE ;
204
+ return false ;
205
205
}
206
206
left -= rect .x + 1 ;
207
207
paint_rect .width = rect .width ;
@@ -219,7 +219,7 @@ static bool pd_paint_boxshadow_right_blur(pd_boxshadow_context_t *ctx)
219
219
* p = color ;
220
220
}
221
221
}
222
- return PD_TRUE ;
222
+ return true ;
223
223
}
224
224
225
225
static 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)
242
242
bottom = rect .y + rect .height ;
243
243
gradient_init (& g , BLUR_WIDTH (ctx -> shadow ));
244
244
if (!pd_rect_overlap (& ctx -> paint -> rect , & rect , & rect )) {
245
- return PD_FALSE ;
245
+ return false ;
246
246
}
247
247
bottom -= rect .y ;
248
248
paint_rect .width = rect .width ;
@@ -260,7 +260,7 @@ static bool pd_paint_boxshadow_top_blur(pd_boxshadow_context_t *ctx)
260
260
* p = color ;
261
261
}
262
262
}
263
- return PD_TRUE ;
263
+ return true ;
264
264
}
265
265
266
266
static 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)
283
283
top = rect .y ;
284
284
gradient_init (& g , BLUR_WIDTH (ctx -> shadow ));
285
285
if (!pd_rect_overlap (& ctx -> paint -> rect , & rect , & rect )) {
286
- return PD_FALSE ;
286
+ return false ;
287
287
}
288
288
top -= rect .y + 1 ;
289
289
paint_rect .width = rect .width ;
@@ -300,7 +300,7 @@ static bool pd_paint_boxshadow_bottom_blur(pd_boxshadow_context_t *ctx)
300
300
* p = color ;
301
301
}
302
302
}
303
- return PD_TRUE ;
303
+ return true ;
304
304
}
305
305
306
306
static 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,
327
327
pd_color_t * p ;
328
328
329
329
if (!pd_rect_overlap (& ctx -> paint -> rect , circle_rect , & rect )) {
330
- return PD_FALSE ;
330
+ return false ;
331
331
}
332
332
color = ctx -> shadow -> color ;
333
333
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,
370
370
* p = color ;
371
371
}
372
372
}
373
- return PD_TRUE ;
373
+ return true ;
374
374
}
375
375
376
376
static 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,
610
610
sd_ctx .paint = & tmp ;
611
611
pd_canvas_init (& tmp .canvas );
612
612
tmp .rect = ctx -> rect ;
613
- tmp .with_alpha = PD_TRUE ;
613
+ tmp .with_alpha = true ;
614
614
tmp .canvas .color_type = PD_COLOR_TYPE_ARGB ;
615
615
pd_canvas_create (& sd_ctx .paint -> canvas , ctx -> rect .width ,
616
616
ctx -> rect .height );
0 commit comments