优化LCD字库输出格式

This commit is contained in:
gb 2024-02-02 10:08:18 +08:00
parent db6c5104f5
commit c469f37194
2 changed files with 1 additions and 4 deletions

View File

@ -107,11 +107,8 @@ void CDlgZk::regen(void)
for (int i = 1; i < out.cx * out.cy / 8; ++i) for (int i = 1; i < out.cx * out.cy / 8; ++i)
{ {
if (i % 16 == 0) if (i % 16 == 0)
sep += L"\r\n\t\t"; swprintf_s(text, L"\r\n\t\t, 0x%02X", ptr[i]);
else if (i % 8 == 0) else if (i % 8 == 0)
sep += L" ";
if (i % 8 == 0)
swprintf_s(text, L", 0x%02X", ptr[i]); swprintf_s(text, L", 0x%02X", ptr[i]);
else else
swprintf_s(text, L", 0x%02X", ptr[i]); swprintf_s(text, L", 0x%02X", ptr[i]);

Binary file not shown.