diff --git a/src/emucore/FSNode.hxx b/src/emucore/FSNode.hxx index d9c9dfab8..6b3f84c89 100644 --- a/src/emucore/FSNode.hxx +++ b/src/emucore/FSNode.hxx @@ -493,7 +493,7 @@ class AbstractFSNode const char* start = str.c_str(); const char* cur = start + str.size() - 2; - while (cur >= start && *cur != FilesystemNode::PATH_SEPARATOR) + while (cur >= start && !(*cur == '/' || *cur == '\\')) --cur; return cur + 1; diff --git a/src/gui/BrowserDialog.cxx b/src/gui/BrowserDialog.cxx index d56b8558d..7639dbfd3 100644 --- a/src/gui/BrowserDialog.cxx +++ b/src/gui/BrowserDialog.cxx @@ -127,7 +127,6 @@ void BrowserDialog::show(const string& startpath, { const int fontWidth = _font.getMaxCharWidth(), fontHeight = _font.getFontHeight(), - HBORDER = fontWidth * 1.25, VGAP = fontHeight / 4; _mode = mode;