fix a false spell ("resolution")

This commit is contained in:
chenhuan 2019-11-28 12:31:56 +01:00
parent 46de465d99
commit d711066980
2 changed files with 2 additions and 1 deletions

View File

@ -6,4 +6,5 @@
int main(int argc, char **argv) { int main(int argc, char **argv) {
GUI_run(argc,argv); GUI_run(argc,argv);
} }

View File

@ -29,7 +29,7 @@ auto GUI_run(int argc, char **argv) -> int {
char *get_resolusion(int window_height, int window_width) { char *get_resolusion(int window_height, int window_width) {
char *resolusion = new char[25]; char *resolusion = new char[25];
std::string str_temp; std::string str_temp;
strcpy(resolusion, "Resolusion Height:"); strcpy(resolusion, "Resolution Height:");
str_temp = std::to_string(window_height); str_temp = std::to_string(window_height);
strcat(resolusion, str_temp.c_str()); strcat(resolusion, str_temp.c_str());
strcat(resolusion, " Width:"); strcat(resolusion, " Width:");