mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Fixed GenerateCode error
This commit is contained in:
@ -1623,7 +1623,7 @@ static void GenerateCode(const char *fileName , bool noStaticData)
|
|||||||
case CHECKBOX:
|
case CHECKBOX:
|
||||||
{
|
{
|
||||||
fprintf(ftool, " // %s variables\n", layout.controls[i].name);
|
fprintf(ftool, " // %s variables\n", layout.controls[i].name);
|
||||||
fprintf(ftool, " bool %s = false;\n\n", layout.controls[i].name, i);
|
fprintf(ftool, " bool %s = false;\n\n", layout.controls[i].name);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1669,7 +1669,7 @@ static void GenerateCode(const char *fileName , bool noStaticData)
|
|||||||
case TEXTBOX:
|
case TEXTBOX:
|
||||||
{
|
{
|
||||||
fprintf(ftool, " // %s variables\n", layout.controls[i].name);
|
fprintf(ftool, " // %s variables\n", layout.controls[i].name);
|
||||||
fprintf(ftool, " char %s[32] = \"%s\";\n", layout.controls[i].name, i, layout.controls[i].text);
|
fprintf(ftool, " char %s[32] = \"%s\";\n", layout.controls[i].name, layout.controls[i].text);
|
||||||
fprintf(ftool, " int %sSize = 32;\n\n", layout.controls[i].name);
|
fprintf(ftool, " int %sSize = 32;\n\n", layout.controls[i].name);
|
||||||
}
|
}
|
||||||
default: break;
|
default: break;
|
||||||
|
|||||||
Reference in New Issue
Block a user