Skip to content

Commit

Permalink
Merge pull request #835 from cjee21/windows-hidpi
Browse files Browse the repository at this point in the history
Windows GUI: Enable DPI Awareness
  • Loading branch information
JeromeMartinez authored May 21, 2024
2 parents 02035a2 + 82bd9b7 commit 1495b64
Show file tree
Hide file tree
Showing 17 changed files with 6,546 additions and 20,547 deletions.
6 changes: 4 additions & 2 deletions Project/BCB/GUI/MediaInfo_GUI.cbproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
<Icon_MainIcon>..\..\..\Source\Resource\Image\MediaInfo.ico</Icon_MainIcon>
<IncludePath>..\..\..\Source\Common\;..\..\..\Source\;..\..\..\Source\GUI\VCL\;..\..\..\..\ZenLib\Source\;..\..\..\..\MediaInfoLib\Source\;$(IncludePath)</IncludePath>
<AllPackageLibs>rtl.lib;vcl.lib;bcbie.lib</AllPackageLibs>
<AllPackageLibs>rtl.lib;vcl.lib;bcbie.lib;vclwinx.lib;vclimg.lib;bindengine.lib</AllPackageLibs>
<_TCHARMapping>wchar_t</_TCHARMapping>
<DCC_CBuilderOutput>JPHNE</DCC_CBuilderOutput>
<IntermediateOutputDir>.\$(Platform)\$(Config)</IntermediateOutputDir>
Expand Down Expand Up @@ -105,9 +105,11 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2_Win32)'!=''">
<VerInfo_Release>0</VerInfo_Release>
<LinkPackageStatics>rtl.lib;vcl.lib;bcbie.lib</LinkPackageStatics>
<LinkPackageStatics>rtl.lib;vcl.lib;bcbie.lib;vclwinx.lib;vclimg.lib;bindengine.lib</LinkPackageStatics>
<VerInfo_Keys>CompanyName=MediaArea.net;FileDescription=MediaInfo;FileVersion=24.04.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=MediaInfo;ProductVersion=24.04.0.0;Comments=</VerInfo_Keys>
<Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
<Icon_MainIcon>..\..\..\Source\Resource\Image\MediaInfo.ico</Icon_MainIcon>
</PropertyGroup>
<ItemGroup>
<LibFiles Condition="'$(Platform)'=='Win32'" Include="$(BDSLIB)\win32\release\wininet.lib">
Expand Down
20,811 changes: 1,763 additions & 19,048 deletions Source/GUI/VCL/GUI_About.dfm

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions Source/GUI/VCL/GUI_About.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#include <ComCtrls.hpp>
#include <StdCtrls.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <System.ImageList.hpp>
#include <Vcl.BaseImageCollection.hpp>
#include <Vcl.ImageCollection.hpp>
#include <Vcl.VirtualImageList.hpp>
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
Expand All @@ -45,10 +49,10 @@ class TAboutF : public TForm
TToolButton *ToolButton2;
TButton *WriteMe;
TButton *WriteToTranslator;
TImageList *ImageList1;
TImageList *ImageList2;
TImageList *ImageList3;
TLinkLabel *Sponsor_Label;
TImageCollection* ImageCollection1;
TVirtualImageList* VirtualImageList1;
TVirtualImageList* VirtualImageList2;
void __fastcall WebSiteClick(TObject *Sender);
void __fastcall FormShow(TObject *Sender);
void __fastcall NewVersionClick(TObject *Sender);
Expand Down
6,257 changes: 4,765 additions & 1,492 deletions Source/GUI/VCL/GUI_Main.dfm

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions Source/GUI/VCL/GUI_Main.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
#include "SHDocVw_OCX.h"
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include <System.ImageList.hpp>
#include <Vcl.BaseImageCollection.hpp>
#include <Vcl.ImageCollection.hpp>
#include <Vcl.VirtualImageList.hpp>
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
Expand Down Expand Up @@ -141,8 +145,6 @@ class TMainF : public TForm
TMenuItem *M_Help_SupportedParameters;
TMenuItem *M_Language;
TMenuItem *ToDo1;
TImageList *Menu_Image;
TImageList *ToolBar_Image;
TPopupMenu *ToolBar_View_Menu;
TMenuItem *ToolBar_View_Easy;
TMenuItem *ToolBar_View_Sheet;
Expand Down Expand Up @@ -220,6 +222,9 @@ class TMainF : public TForm
TMenuItem *ToolBar_View_reVTMD;
TMenuItem *ToolBar_View_NISO_Z39_87;
TMenuItem *ToolBar_View_Graph_Svg;
TImageCollection* ImageCollection1;
TVirtualImageList* Menu_Image;
TVirtualImageList* Toolbar_Image;
void __fastcall FormResize(TObject *Sender);
void __fastcall M_Help_AboutClick(TObject *Sender);
void __fastcall M_Options_PreferencesClick(TObject *Sender);
Expand Down
Binary file added Source/Resource/Image/Menu/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Source/Resource/Image/Menu/Debug-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Source/Resource/Image/Menu/Help_About-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Source/Resource/Image/Menu/K20/File_Save-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Source/Resource/Image/Menu/K20/Help_About-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Source/Resource/Image/Menu/K20/View-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Source/Resource/Image/Menu/Language-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Source/Resource/Image/Menu/View_System-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1495b64

Please sign in to comment.