1
0
mirror of https://github.com/fumiama/CMoe-Counter.git synced 2024-11-23 22:00:56 +01:00

优化显示长度

This commit is contained in:
源文雨 2022-03-02 17:23:53 +08:00
parent e871d3da19
commit b773d11ca4

4
cmoe.c
View File

@ -146,9 +146,9 @@ static void return_count(char* name, char* theme) {
}
headers(get_content_len(isbig, len_type, cntstr+cntstrstart), "image/svg+xml");
write(1, head, sizeof(svg_small)-1);
for(int i = cntstrstart; i < 10; i++) {
for(int i = 0; i < 10-cntstrstart; i++) {
printf(img_slot_front, w * i, w, h);
int n = cntstr[i] - '0';
int n = cntstr[cntstrstart+i] - '0';
fwrite(theme_type[n], len_type[n], 1, stdout);
puts(img_slot_rear);
}