Change variable name from l to k.
This commit is contained in:
parent
76c5590bfb
commit
6cbc861ebc
@ -439,11 +439,11 @@ HFONT WCUSER_CopyFont(struct config_data* config, HWND hWnd, const LOGFONT* lf)
|
|||||||
GetCharWidth32(hDC, tm.tmFirstChar, tm.tmFirstChar, &w);
|
GetCharWidth32(hDC, tm.tmFirstChar, tm.tmFirstChar, &w);
|
||||||
for (i = tm.tmFirstChar + 1; i <= tm.tmLastChar; i += sizeof(buf) / sizeof(buf[0]))
|
for (i = tm.tmFirstChar + 1; i <= tm.tmLastChar; i += sizeof(buf) / sizeof(buf[0]))
|
||||||
{
|
{
|
||||||
int j, l;
|
int j, k;
|
||||||
|
|
||||||
l = min(tm.tmLastChar - i, sizeof(buf) / sizeof(buf[0]) - 1);
|
k = min(tm.tmLastChar - i, sizeof(buf) / sizeof(buf[0]) - 1);
|
||||||
GetCharWidth32(hDC, i, i + l, buf);
|
GetCharWidth32(hDC, i, i + k, buf);
|
||||||
for (j = 0; j <= l; j++)
|
for (j = 0; j <= k; j++)
|
||||||
{
|
{
|
||||||
if (buf[j] != w)
|
if (buf[j] != w)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user