Skip to content

Commit 27e1168

Browse files
committed
Move the About dialog image embedded in the EXE file into the Resources folder and double the size of the image.
(cherry picked from commit b247f4d7478c474feb6b4178d8a4a52a67337fb3)
1 parent b2e883f commit 27e1168

File tree

11 files changed

+21
-5
lines changed

11 files changed

+21
-5
lines changed

BuildArc.cmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if "%1" == "x64" (
7373
)
7474

7575
rem Create folder structure
76-
for %%i in (ColorSchemes Languages\ShellExtension Filters MergePlugins Docs Frhed\Docs Frhed\Languages WinIMerge WinWebDiff Merge7z\Lang Commands\Apache-Tika Commands\tidy-html5 Commands\jq Commands\q Commands\msys2 Commands\md4c) do (
76+
for %%i in (ColorSchemes Languages\ShellExtension Filters MergePlugins Docs Frhed\Docs Frhed\Languages WinIMerge WinWebDiff Merge7z\Lang Commands\Apache-Tika Commands\tidy-html5 Commands\jq Commands\q Commands\msys2 Commands\md4c Resources) do (
7777
mkdir "%DISTDIR%\%PLATFORMH%zip-version\WinMerge\%%i" 2> NUL
7878
)
7979

@@ -202,6 +202,10 @@ copy Build\md4c\mingw32\share\licenses\md4c\LICENSE.md "%DISTDIR%\%PLATFORMH%zip
202202
rem Plugin.xml
203203
copy Plugins\Plugins.xml "%DISTDIR%\%PLATFORMH%zip-version\WinMerge\MergePlugins\" > NUL
204204

205+
rem Copy Resources...
206+
echo Copy Resources...
207+
copy Src\res\splash.png "%DISTDIR%\%PLATFORMH%zip-version\WinMerge\Resources\" > NUL
208+
205209
echo.
206210
echo ------------------------------------------------------------
207211
echo Pack archive...

DownloadDeps.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ for %%i in (x86 x64 ARM ARM64) do (
8888
mkdir Build\%%i\%%j\Commands\tidy-html5 2> NUL
8989
mkdir Build\%%i\%%j\Commands\msys2\usr\bin 2> NUL
9090
mkdir Build\%%i\%%j\Commands\md4c 2> NUL
91+
mkdir Build\%%i\%%j\Resources 2> NUL
9192
if not "Build\%%i\Release" == "Build\%%i\%%j" (
9293
echo ** Merge7z
9394
xcopy /s/y Build\%%i\Release\Merge7z Build\%%i\%%j\Merge7z\
@@ -123,6 +124,8 @@ for %%i in (x86 x64 ARM ARM64) do (
123124
copy Plugins\dlls\%%i\*.dll Build\%%i\%%j\MergePlugins\
124125
echo ** ShellExtension
125126
xcopy /s/y Build\ShellExtension\WinMergeContextMenuPackage.msix Build\%%i\%%j
127+
echo ** Resources
128+
copy Src\res\splash.png Build\%%i\%%j\Resources\
126129
)
127130
)
128131

Installer/InnoSetup/WinMergeARM64.is6.iss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ Source: ..\..\Build\{#ARCH}\Release\WinMergeU.exe; DestDir: {app}; Flags: prompt
421421
; Visual Elements
422422
Source: ..\..\Build\{#ARCH}\Release\WinMergeU.VisualElementsManifest.xml; DestDir: {app}; Flags: promptifolder; Components: Core
423423
Source: ..\..\Build\{#ARCH}\Release\LogoImages\*.png; DestDir: {app}\LogoImages; Flags: promptifolder; Components: Core
424+
; Resources
425+
Source: ..\..\Build\{#ARCH}\Release\Resources\*.png; DestDir: {app}\Resources; Flags: promptifolder; Components: Core
424426
; 32Bit Plugin Proxy
425427
Source: ..\..\Plugins\WinMerge32BitPluginProxy\Release\WinMerge32BitPluginProxy.exe; DestDir: {app}; Flags: promptifolder; Components: Core
426428

Installer/InnoSetup/WinMergeX64.is6.iss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ Source: ..\..\Build\{#ARCH}\Release\WinMergeU.exe; DestDir: {app}; Flags: prompt
420420
; Visual Elements
421421
Source: ..\..\Build\{#ARCH}\Release\WinMergeU.VisualElementsManifest.xml; DestDir: {app}; Flags: promptifolder; Components: Core
422422
Source: ..\..\Build\{#ARCH}\Release\LogoImages\*.png; DestDir: {app}\LogoImages; Flags: promptifolder; Components: Core
423+
; Resources
424+
Source: ..\..\Build\{#ARCH}\Release\Resources\*.png; DestDir: {app}\Resources; Flags: promptifolder; Components: Core
423425
; 32Bit Plugin Proxy
424426
Source: ..\..\Plugins\WinMerge32BitPluginProxy\Release\WinMerge32BitPluginProxy.exe; DestDir: {app}; Flags: promptifolder; Components: Core
425427

Installer/InnoSetup/WinMergeX64.iss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ Source: ..\..\Build\{#ARCH}\Release\WinMergeU.exe; DestDir: {app}; Flags: prompt
412412
; Visual Elements
413413
Source: ..\..\Build\{#ARCH}\Release\WinMergeU.VisualElementsManifest.xml; DestDir: {app}; Flags: promptifolder; Components: Core
414414
Source: ..\..\Build\{#ARCH}\Release\LogoImages\*.png; DestDir: {app}\LogoImages; Flags: promptifolder; Components: Core
415+
; Resources
416+
Source: ..\..\Build\{#ARCH}\Release\Resources\*.png; DestDir: {app}\Resources; Flags: promptifolder; Components: Core
415417
; 32Bit Plugin Proxy
416418
Source: ..\..\Plugins\WinMerge32BitPluginProxy\Release\WinMerge32BitPluginProxy.exe; DestDir: {app}; Flags: promptifolder; Components: Core
417419

Installer/InnoSetup/WinMergeX64NonAdmin.iss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ Source: ..\..\Build\{#ARCH}\Release\WinMergeU.exe; DestDir: {app}; Flags: prompt
411411
; Visual Elements
412412
Source: ..\..\Build\{#ARCH}\Release\WinMergeU.VisualElementsManifest.xml; DestDir: {app}; Flags: promptifolder; Components: Core
413413
Source: ..\..\Build\{#ARCH}\Release\LogoImages\*.png; DestDir: {app}\LogoImages; Flags: promptifolder; Components: Core
414+
; Resources
415+
Source: ..\..\Build\{#ARCH}\Release\Resources\*.png; DestDir: {app}\Resources; Flags: promptifolder; Components: Core
414416
; 32Bit Plugin Proxy
415417
Source: ..\..\Plugins\WinMerge32BitPluginProxy\Release\WinMerge32BitPluginProxy.exe; DestDir: {app}; Flags: promptifolder; Components: Core
416418

Installer/InnoSetup/WinMergeX86.iss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ Source: ..\..\Build\{#ARCH}\Release\WinMergeU.exe; DestDir: {app}; Flags: prompt
436436
; Visual Elements
437437
Source: ..\..\Build\{#ARCH}\Release\WinMergeU.VisualElementsManifest.xml; DestDir: {app}; Flags: promptifolder; Components: Core
438438
Source: ..\..\Build\{#ARCH}\Release\LogoImages\*.png; DestDir: {app}\LogoImages; Flags: promptifolder; Components: Core
439+
; Resources
440+
Source: ..\..\Build\{#ARCH}\Release\Resources\*.png; DestDir: {app}\Resources; Flags: promptifolder; Components: Core
439441

440442
; Shell extension
441443
Source: ..\..\Build\ShellExtension\{#ShellExtension32bit}; DestDir: {app}; Flags: regserver uninsrestartdelete restartreplace promptifolder; \

Src/AboutDlg.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
#include "stdafx.h"
1010
#include "AboutDlg.h"
1111
#include "TrDialogs.h"
12-
#include "Bitmap.h"
12+
#include "paths.h"
13+
#include "Environment.h"
1314
#include "resource.h" // IDD_ABOUTBOX
1415

1516
// https://www.gnu.org/graphics/gnu-ascii.html
@@ -104,7 +105,7 @@ BOOL CAboutDlg::Impl::OnInitDialog()
104105
{
105106
CTrDialog::OnInitDialog();
106107

107-
if (!LoadImageFromResource(m_image, MAKEINTRESOURCE(IDR_SPLASH), _T("IMAGE")))
108+
if (!m_image.Load(paths::ConcatPath(env::GetProgPath(), _T("Resources\\splash.png")).c_str()))
108109
{
109110
// FIXME: LoadImageFromResource() seems to fail when running on Wine 5.0.
110111
}

Src/Merge2.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ END
109109
// Image
110110
//
111111

112-
IDR_SPLASH IMAGE "res\\splash.jpg"
113112
IDR_LOGO IMAGE "res\\logo.jpg"
114113
IDR_MARGIN_ICONS_PNG IMAGE "res\\mg_icons.png"
115114

Src/res/splash.png

145 KB
Loading

Src/resource.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
#define IDD_PLUGINS_EDITPLUGIN 288
9191
#define IDI_ROTATE2 302
9292
#define IDR_LOGO 307
93-
#define IDR_SPLASH 308
9493
#define IDR_MARGIN_ICONS_PNG 310
9594
#define IDB_EDIT_COPY 316
9695
#define IDB_EDIT_CUT 317

0 commit comments

Comments
 (0)