mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
fixup! fixup! feat: replace custom bool type with bool type in stdbool.h
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)");
|
||||
|
||||
Reference in New Issue
Block a user