fixup! fixup! feat: replace custom bool type with bool type in stdbool.h

This commit is contained in:
Liu
2024-12-07 00:18:57 +08:00
parent f2be1c4e72
commit 3dc014fa04
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ PD_PUBLIC bool pd_rect_is_cover(const pd_rect_t *a, const pd_rect_t *b);
* @param[in] a 矩形A
* @param[in] b 矩形B
* @param[out] out 矩形A和B重叠处的矩形
* @returns 如果两个矩形重叠,则返回PD_TRUE,否则返回PD_FALSE
* @returns 如果两个矩形重叠,则返回true,否则返回false
*/
PD_PUBLIC bool pd_rect_overlap(const pd_rect_t *a, const pd_rect_t *b,
pd_rect_t *overlapping_rect);
+2 -2
View File
@@ -47,12 +47,12 @@ void test_canvas_mix(void)
pd_canvas_create(&blue_layer, 60, 60);
pd_canvas_fill(&blue_layer, blue);
pd_canvas_mix(&red_layer, &blue_layer, 10, 10, PD_TRUE);
pd_canvas_mix(&red_layer, &blue_layer, 10, 10, true);
pixel = pd_canvas_pixel_at(&red_layer, 15, 15);
color2str(rgba_str, pixel);
ctest_equal_str("red_layer(15, 15)", rgba_str, "rgba(50, 0, 204, 1)");
pd_canvas_mix(&white_layer, &red_layer, 10, 10, PD_TRUE);
pd_canvas_mix(&white_layer, &red_layer, 10, 10, true);
pixel = pd_canvas_pixel_at(&white_layer, 0, 0);
color2str(rgba_str, pixel);
ctest_equal_str("white_layer(0, 0)", rgba_str, "rgba(255, 255, 255, 1)");