From ac370b23f6795a2e2030aa37bfa773b70eca84fa Mon Sep 17 00:00:00 2001 From: hui-shao Date: Sat, 14 Nov 2020 12:38:07 +0800 Subject: [PATCH] [Fix] Fix a spelling error. --- Cpp/Screen-Resolution/Screen-Resolution.cpp | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cpp/Screen-Resolution/Screen-Resolution.cpp b/Cpp/Screen-Resolution/Screen-Resolution.cpp index 9c936c7..a08047c 100644 --- a/Cpp/Screen-Resolution/Screen-Resolution.cpp +++ b/Cpp/Screen-Resolution/Screen-Resolution.cpp @@ -8,7 +8,7 @@ void set_resolution(int width, int height) //EnumDisplaySettings函数得到显示设备的一个图形模式设备,通过对该函数一系列的调用可以得到显示设备所有的图形模式信息。 EnumDisplaySettings(0, ENUM_CURRENT_SETTINGS, &NewDevMode); - std::cout << "Current: " << NewDevMode.dmPelsWidth << "x" << NewDevMode.dmPelsHeight << " " << NewDevMode.dmDisplayFrequency << "Hz\n" << std::endl; + std::cout << "Current: " << NewDevMode.dmPelsWidth << "x" << NewDevMode.dmPelsHeight << " " << NewDevMode.dmDisplayFrequency << "Hz\n" << std::endl; //修改下DEVMODE相关成员变量的值 NewDevMode.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT; @@ -32,7 +32,7 @@ int main(int argc, char** argv) } else { - std::cout << "Invalid arguments, have nothing to do...\nUseage: [Width] [Height]" << std::endl; + std::cout << "Invalid arguments, have nothing to do...\nUsage: [Width] [Height]" << std::endl; } std::cout << "\nPress any key to exit..." << std::endl; system("pause>nul"); diff --git a/README.md b/README.md index 633a56f..cbdc433 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ A program based on C++/Python to customize screen resolution. 接受传入参数,并将传入的参数值设置为分辨率。要求传入参数在“当前系统所支持的分辨率”列表内 ``` -Useage: [Width] [Height] +Usage: [Width] [Height] ``` 示例: