Skip to content

Commit

Permalink
better framing for DISPLAY MODE notif
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-FK committed Jan 15, 2021
1 parent f0728b4 commit a6c28ff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions input.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,9 +935,9 @@ u32 update_input()
aspect_ratio = ASPECT_RATIOS_TYPE_MANUAL;

/// ----- Hud Msg -----
/*sprintf(hud_msg, "DISPLAY MODE: MANUAL ZOOM %d%%", aspect_ratio_factor_percent);
/*sprintf(hud_msg, " DISP MODE: ZOOMED %d%%", aspect_ratio_factor_percent);
set_hud_msg(hud_msg, 4);*/
sprintf(shell_cmd, "%s %d \"DISPLAY MODE: MANUAL ZOOM %d%%%%\"",
sprintf(shell_cmd, "%s %d \" DISPLAY MODE: ZOOMED %d%%%%\"",
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, aspect_ratio_factor_percent);
fp = popen(shell_cmd, "r");
if (fp == NULL) {
Expand All @@ -956,9 +956,9 @@ u32 update_input()
aspect_ratio = ASPECT_RATIOS_TYPE_MANUAL;

/// ----- Hud Msg -----
/*sprintf(hud_msg, "DISPLAY MODE: MANUAL ZOOM %d%%", aspect_ratio_factor_percent);
/*sprintf(hud_msg, " DISP MODE: ZOOMED %d%%", aspect_ratio_factor_percent);
set_hud_msg(hud_msg, 4);*/
sprintf(shell_cmd, "%s %d \"DISPLAY MODE: MANUAL ZOOM %d%%%%\"",
sprintf(shell_cmd, "%s %d \" DISPLAY MODE: ZOOMED %d%%%%\"",
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, aspect_ratio_factor_percent);
fp = popen(shell_cmd, "r");
if (fp == NULL) {
Expand All @@ -973,13 +973,13 @@ u32 update_input()

/// ----- Hud Msg -----
if(aspect_ratio == ASPECT_RATIOS_TYPE_MANUAL){
//sprintf(hud_msg, "DISPLAY MODE: MANUAL ZOOM %d%%", aspect_ratio_factor_percent);
sprintf(shell_cmd, "%s %d \"DISPLAY MODE: MANUAL ZOOM %d%%%%\"",
//sprintf(hud_msg, " DISP MODE: ZOOMED %d%%", aspect_ratio_factor_percent);
sprintf(shell_cmd, "%s %d \" DISPLAY MODE: ZOOMED %d%%%%\"",
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, aspect_ratio_factor_percent);
}
else{
//sprintf(hud_msg, "DISPLAY MODE: %s", aspect_ratio_name[aspect_ratio]);
sprintf(shell_cmd, "%s %d \" DISPLAY MODE: %s\"",
sprintf(shell_cmd, "%s %d \" DISPLAY MODE: %s\"",
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, aspect_ratio_name[aspect_ratio]);
}
//set_hud_msg(hud_msg, 4);
Expand Down

0 comments on commit a6c28ff

Please sign in to comment.