Skip to content

Commit

Permalink
Update to upstream Switchres (2.2.1).
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioginer committed Aug 3, 2024
1 parent 161ffc2 commit 93fccb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/switchres/switchres.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ switchres_manager::switchres_manager()
display()->set_monitor("generic_15");
display()->set_modeline("auto");
display()->set_lcd_range("auto");
for (int i = 0; i++ < MAX_RANGES;) display()->set_crt_range(i, "auto");
for (int i = 0; i < MAX_RANGES; i++) display()->set_crt_range(i, "auto");
display()->set_screen("auto");
display()->set_modeline_generation(true);
display()->set_lock_unsupported_modes(true);
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/switchres/switchres.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
//============================================================

#ifndef SWITCHRES_VERSION
#define SWITCHRES_VERSION "2.2.0"
#define SWITCHRES_VERSION "2.2.1"
#endif


Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/switchres/switchres_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ int main(int argc, char **argv)
monitor_range *range = &switchres.display()->range[mode->range];
edid_from_modeline(mode, range, switchres.display()->monitor(), &edid);

char file_name[strlen(switchres.display()->monitor()) + 4];
char file_name[strlen(switchres.display()->monitor()) + 5];
sprintf(file_name, "%s.bin", switchres.display()->monitor());

FILE *file = fopen(file_name, "wb");
Expand Down

0 comments on commit 93fccb3

Please sign in to comment.