C89_BUILD fix
This commit is contained in:
parent
d7c4b4f009
commit
696abbed83
|
@ -2300,10 +2300,12 @@ bool command_event(enum event_command cmd, void *data)
|
||||||
case CMD_EVENT_PAUSE_CHECKS:
|
case CMD_EVENT_PAUSE_CHECKS:
|
||||||
if (runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL))
|
if (runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL))
|
||||||
{
|
{
|
||||||
|
bool is_paused = false;
|
||||||
|
|
||||||
RARCH_LOG("%s\n", msg_hash_to_str(MSG_PAUSED));
|
RARCH_LOG("%s\n", msg_hash_to_str(MSG_PAUSED));
|
||||||
command_event(CMD_EVENT_AUDIO_STOP, NULL);
|
command_event(CMD_EVENT_AUDIO_STOP, NULL);
|
||||||
|
|
||||||
bool is_paused = runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL);
|
is_paused = runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL);
|
||||||
runloop_msg_queue_push(msg_hash_to_str(MSG_PAUSED), 1, is_paused ? 1: 30, true);
|
runloop_msg_queue_push(msg_hash_to_str(MSG_PAUSED), 1, is_paused ? 1: 30, true);
|
||||||
|
|
||||||
if (settings->video.black_frame_insertion || is_paused)
|
if (settings->video.black_frame_insertion || is_paused)
|
||||||
|
|
|
@ -168,6 +168,7 @@ static bool input_keyboard_line_event(
|
||||||
|
|
||||||
bool input_keyboard_line_append(const char *word)
|
bool input_keyboard_line_append(const char *word)
|
||||||
{
|
{
|
||||||
|
unsigned i = 0;
|
||||||
unsigned len = strlen(word);
|
unsigned len = strlen(word);
|
||||||
|
|
||||||
char *newbuf = (char*)
|
char *newbuf = (char*)
|
||||||
|
@ -179,7 +180,6 @@ bool input_keyboard_line_append(const char *word)
|
||||||
newbuf + g_keyboard_line->ptr,
|
newbuf + g_keyboard_line->ptr,
|
||||||
g_keyboard_line->size - g_keyboard_line->ptr + len);
|
g_keyboard_line->size - g_keyboard_line->ptr + len);
|
||||||
|
|
||||||
unsigned i = 0;
|
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
{
|
{
|
||||||
newbuf[g_keyboard_line->ptr] = word[i];
|
newbuf[g_keyboard_line->ptr] = word[i];
|
||||||
|
|
Loading…
Reference in New Issue