Implement line drawing PolyLine, PolySegment

This commit is contained in:
2026-02-21 16:29:42 +02:00
parent df32c7aa99
commit a13b8617dc
6 changed files with 362 additions and 130 deletions

View File

@@ -753,10 +753,10 @@ BAN::ErrorOr<void> poly_text(Client& client_info, BAN::ConstByteSpan packet, boo
.out_data_u32 = out_data_u32,
.out_w = out_w,
.out_h = out_h,
.min_x = request.x,
.max_x = request.x,
.min_y = request.y,
.max_y = request.y,
.min_x = INT32_MAX,
.max_x = INT32_MIN,
.min_y = INT32_MAX,
.max_y = INT32_MIN,
.font = nullptr,
.gc = gc,
};
@@ -824,10 +824,10 @@ BAN::ErrorOr<void> image_text(Client& client_info, BAN::ConstByteSpan packet, bo
.out_data_u32 = out_data_u32,
.out_w = out_w,
.out_h = out_h,
.min_x = request.x,
.max_x = request.x,
.min_y = request.y,
.max_y = request.y,
.min_x = INT32_MAX,
.max_x = INT32_MIN,
.min_y = INT32_MAX,
.max_y = INT32_MIN,
.font = TRY(get_fontable(client_info, gc.font, opcode)).ptr(),
.gc = gc,
};