Skip to content

Commit

Permalink
[Fix] Fix a spelling error.
Browse files Browse the repository at this point in the history
  • Loading branch information
hui-shao committed Nov 14, 2020
1 parent fb8e715 commit ac370b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cpp/Screen-Resolution/Screen-Resolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A program based on C++/Python to customize screen resolution.
接受传入参数,并将传入的参数值设置为分辨率。要求传入参数在“当前系统所支持的分辨率”列表内

```
Useage: [Width] [Height]
Usage: [Width] [Height]
```

示例:
Expand Down

0 comments on commit ac370b2

Please sign in to comment.