mirror of
https://github.com/0ldsk00l/nestopia.git
synced 2025-04-02 10:31:51 -04:00
FLTK: Style cleanup
This commit is contained in:
parent
8e23a9420a
commit
d0270f1bfb
5 changed files with 19 additions and 19 deletions
|
@ -47,9 +47,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
#include "fltkui.h"
|
||||
#include "fltkui_archive.h"
|
||||
|
||||
static Fl_Double_Window *window;
|
||||
static Fl_Select_Browser *browser;
|
||||
static char *romfile = NULL;
|
||||
static Fl_Double_Window *window{nullptr};
|
||||
static Fl_Select_Browser *browser{nullptr};
|
||||
static char *romfile{nullptr};
|
||||
|
||||
static void fltkui_archive_ok(Fl_Widget *w, long) {
|
||||
window->hide();
|
||||
|
|
|
@ -45,11 +45,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
namespace {
|
||||
|
||||
NstChtWindow *chtwin = nullptr;
|
||||
NstChtWindow *chtwin{nullptr};
|
||||
|
||||
Fl_Input *input_desc;
|
||||
Fl_Input *input_gg;
|
||||
Fl_Input *input_par;
|
||||
Fl_Input *input_desc{nullptr};
|
||||
Fl_Input *input_gg{nullptr};
|
||||
Fl_Input *input_par{nullptr};
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -47,8 +47,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
namespace {
|
||||
|
||||
jg_inputstate_t coreinput[5];
|
||||
jg_inputinfo_t *inputinfo[5];
|
||||
jg_inputstate_t coreinput[5]{};
|
||||
jg_inputinfo_t *inputinfo[5]{nullptr};
|
||||
|
||||
jg_inputstate_t uistate;
|
||||
jg_inputinfo_t uiinfo;
|
||||
|
@ -65,18 +65,18 @@ const int ui_defaults[NDEFS_UI - 1] = {
|
|||
0xffbd + 6, 0xffbd + 7, 0xffbd + 8, 'f', 'p', '`', 0xffbd + 9
|
||||
};
|
||||
|
||||
bool uiprev[NDEFS_UI];
|
||||
bool uiprev[NDEFS_UI]{};
|
||||
|
||||
uint8_t undef8;
|
||||
uint16_t undef16;
|
||||
uint8_t undef8{};
|
||||
uint16_t undef16{};
|
||||
|
||||
constexpr int DEADZONE = 5120;
|
||||
constexpr size_t MAXPORTS = 4;
|
||||
|
||||
SDL_Joystick *joystick[MAXPORTS];
|
||||
int jsports[MAXPORTS];
|
||||
int jsiid[MAXPORTS];
|
||||
int jstrig[MAXPORTS]{{0}};
|
||||
SDL_Joystick *joystick[MAXPORTS]{nullptr};
|
||||
int jsports[MAXPORTS]{};
|
||||
int jsiid[MAXPORTS]{};
|
||||
int jstrig[MAXPORTS]{};
|
||||
|
||||
bool conflict{false};
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
namespace {
|
||||
|
||||
int frametime = 0;
|
||||
int frametime{60};
|
||||
|
||||
void jg_frametime(double interval) {
|
||||
frametime = interval + 0.5;
|
||||
|
|
|
@ -41,8 +41,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
namespace {
|
||||
|
||||
jg_videoinfo_t *vidinfo;
|
||||
uint32_t *videobuf;
|
||||
jg_videoinfo_t *vidinfo{nullptr};
|
||||
uint32_t *videobuf{nullptr};
|
||||
|
||||
struct osdtext {
|
||||
int xpos;
|
||||
|
|
Loading…
Add table
Reference in a new issue