mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Work around C89 limitations
This commit is contained in:
parent
21ab9bbeee
commit
8e2b04d556
@ -1541,29 +1541,36 @@ int menu_hash_get_help_us(uint32_t hash, char *s, size_t len)
|
|||||||
switch (hash)
|
switch (hash)
|
||||||
{
|
{
|
||||||
case MENU_LABEL_VALUE_HELP_AUDIO_VIDEO_TROUBLESHOOTING_DESC:
|
case MENU_LABEL_VALUE_HELP_AUDIO_VIDEO_TROUBLESHOOTING_DESC:
|
||||||
snprintf(s, len,
|
{
|
||||||
"RetroArch relies on an unique form of\n"
|
/* Work around C89 limitations */
|
||||||
"audio/video synchronization where it needs to be\n"
|
char u[501];
|
||||||
"calibrated against the refresh rate of your\n"
|
char t[501];
|
||||||
"display for best performance results.\n"
|
strlcpy(u,
|
||||||
" \n"
|
"RetroArch relies on an unique form of\n"
|
||||||
"If you experience any audio crackling or video\n"
|
"audio/video synchronization where it needs to be\n"
|
||||||
"tearing, usually it means that you need to\n"
|
"calibrated against the refresh rate of your\n"
|
||||||
"calibrate the settings. Some choices below:\n"
|
"display for best performance results.\n"
|
||||||
" \n"
|
" \n"
|
||||||
"a) Go to '%s' -> '%s', and enable\n"
|
"If you experience any audio crackling or video\n"
|
||||||
"'Threaded Video'. Refresh rate will not matter\n"
|
"tearing, usually it means that you need to\n"
|
||||||
"in this mode, framerate will be higher,\n"
|
"calibrate the settings. Some choices below:\n"
|
||||||
"but video might be less smooth.\n"
|
" \n", sizeof(u));
|
||||||
"b) Go to '%s' -> '%s', and look at\n"
|
snprintf(t, sizeof(t),
|
||||||
"'%s'. Let it run for\n"
|
"a) Go to '%s' -> '%s', and enable\n"
|
||||||
"2048 frames, then press 'OK'.",
|
"'Threaded Video'. Refresh rate will not matter\n"
|
||||||
menu_hash_to_str(MENU_LABEL_VALUE_SETTINGS),
|
"in this mode, framerate will be higher,\n"
|
||||||
menu_hash_to_str(MENU_LABEL_VALUE_VIDEO_SETTINGS),
|
"but video might be less smooth.\n"
|
||||||
menu_hash_to_str(MENU_LABEL_VALUE_SETTINGS),
|
"b) Go to '%s' -> '%s', and look at\n"
|
||||||
menu_hash_to_str(MENU_LABEL_VALUE_VIDEO_SETTINGS),
|
"'%s'. Let it run for\n"
|
||||||
menu_hash_to_str(MENU_LABEL_VALUE_VIDEO_REFRESH_RATE_AUTO)
|
"2048 frames, then press 'OK'.",
|
||||||
);
|
menu_hash_to_str(MENU_LABEL_VALUE_SETTINGS),
|
||||||
|
menu_hash_to_str(MENU_LABEL_VALUE_VIDEO_SETTINGS),
|
||||||
|
menu_hash_to_str(MENU_LABEL_VALUE_SETTINGS),
|
||||||
|
menu_hash_to_str(MENU_LABEL_VALUE_VIDEO_SETTINGS),
|
||||||
|
menu_hash_to_str(MENU_LABEL_VALUE_VIDEO_REFRESH_RATE_AUTO));
|
||||||
|
strlcat(s, u, len);
|
||||||
|
strlcat(s, t, len);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case MENU_LABEL_VALUE_HELP_SCANNING_CONTENT_DESC:
|
case MENU_LABEL_VALUE_HELP_SCANNING_CONTENT_DESC:
|
||||||
snprintf(s, len,
|
snprintf(s, len,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user