mirror of
https://github.com/0ldsk00l/nestopia.git
synced 2025-04-02 10:31:51 -04:00
Adds a mute-on-startup entry in settings, a --mute (-m) command line parameter, 'm' hotkey to mute on the fly, and a corresponding menubar entry.
71 lines
2.2 KiB
C++
71 lines
2.2 KiB
C++
/*
|
|
Copyright (c) 2012-2024 R. Danbrook
|
|
All rights reserved.
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
modification, are permitted provided that the following conditions are met:
|
|
|
|
1. Redistributions of source code must retain the above copyright notice, this
|
|
list of conditions and the following disclaimer.
|
|
|
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
this list of conditions and the following disclaimer in the documentation
|
|
and/or other materials provided with the distribution.
|
|
|
|
3. Neither the name of the copyright holder nor the names of its
|
|
contributors may be used to endorse or promote products derived from
|
|
this software without specific prior written permission.
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
#include <FL/Fl.H>
|
|
#include <FL/Fl_Button.H>
|
|
#include <FL/Fl_Double_Window.H>
|
|
#include <FL/Fl_Box.H>
|
|
#include <FL/Fl_Menu_Bar.H>
|
|
#include <FL/Fl_Native_File_Chooser.H>
|
|
#include <FL/Fl_PNG_Image.H>
|
|
#include <FL/Fl_Gl_Window.H>
|
|
#include <FL/Fl_Table_Row.H>
|
|
#include <FL/gl.h>
|
|
|
|
#include "fltkui.h"
|
|
#include "uiadapter.h"
|
|
|
|
void UiAdapter::fullscreen() {
|
|
FltkUi::fullscreen();
|
|
}
|
|
|
|
void UiAdapter::fastforward(bool on) {
|
|
FltkUi::set_ffspeed(on);
|
|
}
|
|
|
|
void UiAdapter::pause() {
|
|
FltkUi::pause();
|
|
}
|
|
|
|
void UiAdapter::mute() {
|
|
FltkUi::mute();
|
|
}
|
|
|
|
void UiAdapter::screenshot() {
|
|
FltkUi::screenshot();
|
|
}
|
|
|
|
void UiAdapter::quit() {
|
|
FltkUi::quit();
|
|
}
|
|
|
|
void UiAdapter::show_inputmsg(int show) {
|
|
FltkUi::show_inputmsg(show);
|
|
}
|