Skip to content

Commit

Permalink
Update OSD with profile info
Browse files Browse the repository at this point in the history
  • Loading branch information
IanSB committed Jan 19, 2021
1 parent b19f968 commit c0eee15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,12 @@ void osd_display_interface(int line) {
osd_set(line, 0, osdline);
sprintf(osdline, "Interface: %s", get_interface_name());
osd_set(line + 2, 0, osdline);
if (has_sub_profiles[get_profile()]) {
sprintf(osdline, "Profile: %s (%s)", profile_names[get_profile()], sub_profile_names[get_subprofile()]);
} else {
sprintf(osdline, "Profile: %s", profile_names[get_profile()]);
}
osd_set(line + 4, 0, osdline);
}

static void info_system_summary(int line) {
Expand Down
6 changes: 3 additions & 3 deletions src/rgb_to_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2423,19 +2423,19 @@ void set_scaling(int mode, int reboot) {
if ((width > 340 && h_size43 < 1440 && (h_size43 % width) > (width / 3)) || (autoswitch == AUTOSWITCH_MODE7 && v_size == 1024)) {
gscaling = GSCALING_MANUAL43;
filtering = FILTERING_SOFT;
set_auto_name("Auto (Interp. 4:3 / Soft)");
set_auto_name("Auto (Interp. 4:3/Soft)");
osd_refresh();
log_info("Setting 4:3 soft");
} else {
gscaling = GSCALING_INTEGER;
if ((autoswitch == AUTOSWITCH_MODE7) && (v_size == 600 || v_size == 576)) {
filtering = FILTERING_SOFT;
set_auto_name("Auto (Integer / Soft)");
set_auto_name("Auto (Integer/Soft)");
osd_refresh();
log_info("Setting Integer soft");
} else {
filtering = FILTERING_NEAREST_NEIGHBOUR;
set_auto_name("Auto (Integer / Sharp)");
set_auto_name("Auto (Integer/Sharp)");
osd_refresh();
log_info("Setting Integer Sharp");
}
Expand Down

0 comments on commit c0eee15

Please sign in to comment.