Skip to content

Commit 1fb5b16

Browse files
Add dimensions to /L, update to VS2022
1 parent 9caba42 commit 1fb5b16

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

DPEdit/DPEdit/DPEdit.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*--------------------------------------------------------------
2-
| Display Position Editor v1.2.2 |
2+
| Display Position Editor v1.3.0 |
33
| By Benjamin J. Pryor |
44
|--------------------------------------------------------------|
55
| A simple command line utility to accurately set the relative |
@@ -94,13 +94,14 @@ void list_displays(void) {
9494
DEVMODE devMode{ {}, {}, {}, sizeof devMode, 0, };
9595
if (EnumDisplaySettings(displayDevice.DeviceName, ENUM_CURRENT_SETTINGS, &devMode))
9696
{
97+
cout << "Dimensions: {" << devMode.dmPelsWidth << ", " << devMode.dmPelsHeight << "}" << endl;
9798
cout << "Position: {" << devMode.dmPosition.x << ", " << devMode.dmPosition.y << "}" << endl;
9899
}
99100
}
100101
}
101102

102103
void show_help(void) {
103-
cout << endl << "DPEdit 1.2.2" << endl;
104+
cout << endl << "DPEdit 1.3.0" << endl;
104105
cout << "A command line utility to accurately position displays in a multi-monitor setup." << endl << endl;
105106
cout << "Usage: dpedit.exe [/H] [/?]" << endl;
106107
cout << " dpedit.exe /L" << endl;

DPEdit/DPEdit/DPEdit.vcxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@
2929
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
3030
<ConfigurationType>Application</ConfigurationType>
3131
<UseDebugLibraries>true</UseDebugLibraries>
32-
<PlatformToolset>v142</PlatformToolset>
32+
<PlatformToolset>v143</PlatformToolset>
3333
<CharacterSet>Unicode</CharacterSet>
3434
</PropertyGroup>
3535
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
3636
<ConfigurationType>Application</ConfigurationType>
3737
<UseDebugLibraries>false</UseDebugLibraries>
38-
<PlatformToolset>v142</PlatformToolset>
38+
<PlatformToolset>v143</PlatformToolset>
3939
<WholeProgramOptimization>true</WholeProgramOptimization>
4040
<CharacterSet>Unicode</CharacterSet>
4141
</PropertyGroup>
4242
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
4343
<ConfigurationType>Application</ConfigurationType>
4444
<UseDebugLibraries>true</UseDebugLibraries>
45-
<PlatformToolset>v142</PlatformToolset>
45+
<PlatformToolset>v143</PlatformToolset>
4646
<CharacterSet>Unicode</CharacterSet>
4747
</PropertyGroup>
4848
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
4949
<ConfigurationType>Application</ConfigurationType>
5050
<UseDebugLibraries>false</UseDebugLibraries>
51-
<PlatformToolset>v142</PlatformToolset>
51+
<PlatformToolset>v143</PlatformToolset>
5252
<WholeProgramOptimization>true</WholeProgramOptimization>
5353
<CharacterSet>Unicode</CharacterSet>
5454
</PropertyGroup>

0 commit comments

Comments
 (0)