mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +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)
|
||||
{
|
||||
if (!_HasImage(col, row, 1, size))
|
||||
return false;
|
||||
|
||||
int scale = 1 << size;
|
||||
auto srcImage0 = imageDatas[0][size];
|
||||
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);
|
||||
}
|
||||
|
||||
String imgCreatePath = scope String(gApp.mInstallDir, "images/ImgCreate.exe");
|
||||
let imgCreateExeTime = File.GetLastWriteTime(imgCreatePath).GetValueOrDefault();
|
||||
|
||||
for (let theme in mTheme)
|
||||
{
|
||||
String relPath = scope .()..Append(gApp.mInstallDir, "themes/");
|
||||
|
@ -523,12 +526,12 @@ namespace IDE
|
|||
needsRebuild = true;
|
||||
if (origImageTime > minDestImgTime)
|
||||
needsRebuild = true;
|
||||
if (imgCreateExeTime > minDestImgTime)
|
||||
needsRebuild = true;
|
||||
}
|
||||
|
||||
if (needsRebuild)
|
||||
{
|
||||
String imgCreatePath = scope String(absPath, "../../images/ImgCreate.exe");
|
||||
|
||||
ProcessStartInfo procInfo = scope ProcessStartInfo();
|
||||
procInfo.UseShellExecute = false;
|
||||
procInfo.RedirectStandardError = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue