Build fix for GTK GUI, re-declaration of an external symbol of a different type is a dangerous thing.

This commit is contained in:
Matthew Budd 2020-11-05 05:45:18 -05:00
parent d8d696e1a1
commit fc1ce9da85
3 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
// HotKeyConf.cpp
// MovieOptions.cpp
//
#include <stdio.h>
#include <stdlib.h>

View File

@ -759,8 +759,7 @@ static void KeyboardCommands (void)
if (_keyonly (Hotkeys[HK_TOGGLE_SUBTITLE]))
{
extern int movieSubtitles;
movieSubtitles ^= 1;
movieSubtitles = !movieSubtitles;
FCEUI_DispMessage ("Movie subtitles o%s.", 0,
movieSubtitles ? "n" : "ff");
}

View File

@ -822,7 +822,6 @@ int main(int argc, char *argv[])
input_display = id;
// not exactly an id as an true/false switch; still better than creating another int for that
g_config->getOption("SDL.SubtitleDisplay", &id);
extern int movieSubtitles;
movieSubtitles = id;
}