From 8423f06d38b4850304bed5d91f8edfd72f562d5e Mon Sep 17 00:00:00 2001 From: InvisibleUp Date: Sat, 1 Apr 2023 16:45:26 -0700 Subject: [PATCH] Add Win32 manifest, rsrc dependency list manifest needed for 1:1 pixel sizing on high DPI displays --- meson.build | 9 ++++++++- rsrc/WIN32/app.manifest | 36 ++++++++++++++++++++++++++++++++++++ rsrc/WIN32/main.aps | Bin 17728 -> 0 bytes rsrc/WIN32/main.rc | 9 +++++++-- 4 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 rsrc/WIN32/app.manifest delete mode 100644 rsrc/WIN32/main.aps diff --git a/meson.build b/meson.build index c5e6fb4..5190e1e 100644 --- a/meson.build +++ b/meson.build @@ -60,11 +60,18 @@ configure_file( lSDL2 = dependency('SDL2', static: true) # Windows resources -# todo: gate this off if not on Windows if target_machine.system() == 'windows' windows = import('windows') WIN_RSRC = windows.compile_resources( 'rsrc/WIN32/main.rc', + depend_files: [ + 'rsrc/WIN32/app.manifest', + 'rsrc/WIN32/ICONAPPW.ico', + 'rsrc/WIN32/ICONDSKW.ico', + 'rsrc/WIN32/ICONROMW.ico', + 'rsrc/SONYDRV.bin', + 'rsrc/SONYICO.bin', + ] ) else WIN_RSRC = [] diff --git a/rsrc/WIN32/app.manifest b/rsrc/WIN32/app.manifest new file mode 100644 index 0000000..425f25f --- /dev/null +++ b/rsrc/WIN32/app.manifest @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + system + + + \ No newline at end of file diff --git a/rsrc/WIN32/main.aps b/rsrc/WIN32/main.aps deleted file mode 100644 index dfa0f93d69c5839faa4f57aff628bb0f8699e6cb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17728 zcmeHPZ){Z8l|RPDGXw-)Evt1Lh{HGqU zi5m9qh}kAHJ%C8?rCW{(Q>4r;Z);^+J;j{Tbf!M zjvTFR3AG%pt*NN|UP*1kkyDLDEl1&OGhAD!g~(3!Q=I4Yvl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#kZty4}2TrKTyTBl*5(m$*KWi6#2Lza~l7GGtBaT1!;CB(1K6Kz~Vxy2jL=N<-) zY&`D?gMi5e8CdlF)pqpHF$f{PvNZ zJ7Rp5970`5yU@>2fjEVJ8l~R=cG90k@264!2>l&} zj(s!%e-g4|h~O;xJ0fK*(xw>iwK~4{1Jfeo(mq=;t|Iy#{S7|({y1Mq(S` z?KNX`4d|0&Yr+T{WDG=?@vdJM?FRmYMDqxnF(*8;ClJ{g_kILH=P*4ck%vU zu_Oy#j!0Y+A`f8HtLAP7>&GQyQU#~)P7VTGMoEDHL(X!|zyl=Q0 zbt`%(l5?<=)*`+tJ06}h9+N)a%&8-{bZkZNcn(B}dNq9PfsZEicouPN5j{EiPz7O9K4cb!t1rx!7GUypKiTem7~{CwSpGmI^yG&y1wdr zuY*?-2Ooxwdrsbm#66e(tyHn2>QI2+^F(_>{pW9MJ(v{#9P6u_+_CEOI~B{Z z{zhUs)}_xmIo36sbze)L-*K#c-_`o1`^p?^KW@HitV{RXIM(J;cdYu_N{yBC&?$*c zcU>{soriKx^P9hA-zHvPS4;7{p6B4*>#wt(^L@=KGtc4Q$_~smpYLG@To~sbCc*d! OgI)`mew=GsWBv!aUi%aP diff --git a/rsrc/WIN32/main.rc b/rsrc/WIN32/main.rc index 0f68cab..d23cde7 100644 --- a/rsrc/WIN32/main.rc +++ b/rsrc/WIN32/main.rc @@ -1,4 +1,9 @@ -//LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#include "winresrc.h" + +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +// Application manifest +CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "app.manifest" // Icons ICO_APP ICON DISCARDABLE "ICONAPPW.ico" @@ -24,7 +29,7 @@ BEGIN VALUE "FileDescription", "A 68k Macintosh emulator\0" VALUE "FileVersion", "v0.37.0\0" VALUE "InternalName", "microvmac\0" - VALUE "LegalCopyright", "©1996-2020 various contributors. Licensed under the GPL v2.\0" + VALUE "LegalCopyright", "(c)1996-2023 various contributors. Licensed under the GPL v2.\0" VALUE "OriginalFilename", "microvmac.exe\0" VALUE "ProductName", "micro vMac\0" VALUE "ProductVersion", "v0.37.0\0"