Skip to content

Commit

Permalink
don't ReportIf() if Shortcuts.Key is VolumeUp or VolumeDown
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Sep 19, 2024
1 parent 4d7f14f commit 17be685
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ext/mupdf_load_system_font.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,8 @@ static fz_font* load_windows_fallback_font(fz_context* ctx, int script, int lang
}

if (!font_name) {
fz_warn(ctx, "couldn't find windows system font for script %d, language: %d, bold: %d, italic: %d", script, language, (int)bold, (int)italic);
fz_warn(ctx, "couldn't find windows system font for script %d, language: %d, bold: %d, italic: %d", script,
language, (int)bold, (int)italic);
return NULL;
}

Expand Down
8 changes: 6 additions & 2 deletions src/Accelerators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ static const char* getVirt(BYTE key, bool isEng) {
case VK_SCROLL:
// TODO: ???
return "Scroll";
case VK_VOLUME_DOWN:
// TODO: ???
return "Volume Down";
case VK_VOLUME_UP:
// TODO: ???
return "Volume Up";
}
/*
TOOD: add those as well?
Expand All @@ -470,8 +476,6 @@ static const char* getVirt(BYTE key, bool isEng) {
#define VK_BROWSER_HOME 0xAC
#define VK_VOLUME_MUTE 0xAD
#define VK_VOLUME_DOWN 0xAE
#define VK_VOLUME_UP 0xAF
#define VK_MEDIA_NEXT_TRACK 0xB0
#define VK_MEDIA_PREV_TRACK 0xB1
#define VK_MEDIA_STOP 0xB2
Expand Down

0 comments on commit 17be685

Please sign in to comment.