mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Fixed theme image merging issue with missing elements
This commit is contained in:
parent
85acdda2b4
commit
20a932f5a7
3 changed files with 8 additions and 2 deletions
|
@ -248,6 +248,9 @@ int main()
|
||||||
|
|
||||||
auto _HasUniqueThemeImage = [&](int col, int row, int size)
|
auto _HasUniqueThemeImage = [&](int col, int row, int size)
|
||||||
{
|
{
|
||||||
|
if (!_HasImage(col, row, 1, size))
|
||||||
|
return false;
|
||||||
|
|
||||||
int scale = 1 << size;
|
int scale = 1 << size;
|
||||||
auto srcImage0 = imageDatas[0][size];
|
auto srcImage0 = imageDatas[0][size];
|
||||||
if (srcImage0 == NULL)
|
if (srcImage0 == NULL)
|
||||||
|
|
BIN
IDE/dist/images/ImgCreate.exe
vendored
BIN
IDE/dist/images/ImgCreate.exe
vendored
Binary file not shown.
|
@ -469,6 +469,9 @@ namespace IDE
|
||||||
mColors.Deserialize(sd);
|
mColors.Deserialize(sd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String imgCreatePath = scope String(gApp.mInstallDir, "images/ImgCreate.exe");
|
||||||
|
let imgCreateExeTime = File.GetLastWriteTime(imgCreatePath).GetValueOrDefault();
|
||||||
|
|
||||||
for (let theme in mTheme)
|
for (let theme in mTheme)
|
||||||
{
|
{
|
||||||
String relPath = scope .()..Append(gApp.mInstallDir, "themes/");
|
String relPath = scope .()..Append(gApp.mInstallDir, "themes/");
|
||||||
|
@ -523,12 +526,12 @@ namespace IDE
|
||||||
needsRebuild = true;
|
needsRebuild = true;
|
||||||
if (origImageTime > minDestImgTime)
|
if (origImageTime > minDestImgTime)
|
||||||
needsRebuild = true;
|
needsRebuild = true;
|
||||||
|
if (imgCreateExeTime > minDestImgTime)
|
||||||
|
needsRebuild = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (needsRebuild)
|
if (needsRebuild)
|
||||||
{
|
{
|
||||||
String imgCreatePath = scope String(absPath, "../../images/ImgCreate.exe");
|
|
||||||
|
|
||||||
ProcessStartInfo procInfo = scope ProcessStartInfo();
|
ProcessStartInfo procInfo = scope ProcessStartInfo();
|
||||||
procInfo.UseShellExecute = false;
|
procInfo.UseShellExecute = false;
|
||||||
procInfo.RedirectStandardError = true;
|
procInfo.RedirectStandardError = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue