Skip to content

High DPI support #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

Xymanek
Copy link
Member

@Xymanek Xymanek commented Oct 27, 2019

Ref: https://docs.microsoft.com/en-us/dotnet/framework/winforms/high-dpi-support-in-windows-forms

I'm worried that it might break the app on Win 7 though

@Xymanek
Copy link
Member Author

Xymanek commented Oct 28, 2019

Apparently the welcome window gets messed up

image

Most likely the anchoring is off

@RevZero RevZero mentioned this pull request Oct 28, 2019
@Zemogiter
Copy link

I'm trying to compile this PR (I've copieed the changes to the latest local master) but I get the following error in VS2019:

1>CSC : error CS2001: Can't find source file „C:\Users\Jonasz\Documents\GitHub\xcom2-launcher\xcom2-launcher\xcom2-launcher\Classes\Steam\SteamManager.cs”.
1>CSC : error CS2001: Can't find source file „C:\Users\Jonasz\Documents\GitHub\xcom2-launcher\xcom2-launcher\xcom2-launcher\Classes\XCOM\XCOM2.cs”.

@RevZero
Copy link
Member

RevZero commented Jul 21, 2020

@Zemogiter
I don't know what you tried, but you can't just copy over the project file. XCOM2.cs and SteamManager.cs no longer exists. You will have to manually merge the required changes if you want to compile changes from this PR based on the latest master.

@Zemogiter
Copy link

@RevZero I've tried downloading the latest repo (master branch) and copying manually the changes from this PR. Now I'm getting a different error:

1>------ Build started: Project: xcom2-launcher, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2081,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Steamworks.NET, Version=13.0.0.0, Culture=neutral, processorArchitecture=AMD64", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3032,5): error MSB3821: Couldn't process file Forms\AboutBox.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3032,5): error MSB3821: Couldn't process file Forms\CategoryManager.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3032,5): error MSB3821: Couldn't process file Forms\MainForm.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3032,5): error MSB3821: Couldn't process file Forms\UnhandledExceptionDialog.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3032,5): error MSB3821: Couldn't process file Forms\UpdateAvailableDialog.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3032,5): error MSB3821: Couldn't process file Forms\WelcomeDialog.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

@RevZero
Copy link
Member

RevZero commented Jul 23, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants