summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/ui.cpp
diff options
context:
space:
mode:
author dankan1890 <mewuidev2@gmail.com>2016-01-29 00:43:18 +0100
committer dankan1890 <mewuidev2@gmail.com>2016-01-29 00:43:18 +0100
commit361d32d37ffbe133760fcbfa314f60ccd4a8e8a8 (patch)
tree31813d7d743784862112bd647ee6da3b1361158b /src/emu/ui/ui.cpp
parentcb1d7fe7fc942677c6aae668e283073f08a11199 (diff)
Small code cleanup:
- corealloc.h: added macro definition for global_alloc (nothrow) memory allocation. - textbuf.cpp / wavwrite.cpp: removed pointless cast. - debugcmd.cpp / luaengine.cpp / render.cpp: avoid strlen calls in a loop. - diimage.cpp: simplified "device_image_interface::set_image_filename" function. - miscmenu.cpp / selgame.h / video.cpp(h): replaced int with bool where applicable. - ui.cpp: removed unused code.
Diffstat (limited to 'src/emu/ui/ui.cpp')
-rw-r--r--src/emu/ui/ui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/ui/ui.cpp b/src/emu/ui/ui.cpp
index 3f2d252c107..e9a03243eae 100644
--- a/src/emu/ui/ui.cpp
+++ b/src/emu/ui/ui.cpp
@@ -236,7 +236,7 @@ ui_manager::ui_manager(running_machine &machine)
m_handler_param = 0;
m_single_step = false;
m_showfps = false;
- m_showfps_end = false;
+ m_showfps_end = 0;
m_show_profiler = false;
m_popup_text_end = 0;
m_use_natural_keyboard = false;
@@ -1503,7 +1503,6 @@ UINT32 ui_manager::handler_ingame(running_machine &machine, render_container *co
// first draw the FPS counter
if (machine.ui().show_fps_counter())
{
- std::string tempstring;
machine.ui().draw_text_full(container, machine.video().speed_text().c_str(), 0.0f, 0.0f, 1.0f,
JUSTIFY_RIGHT, WRAP_WORD, DRAW_OPAQUE, ARGB_WHITE, ARGB_BLACK, nullptr, nullptr);
}