]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/debug/m68kdasmbrowser.cpp
Changed fonts in developer dialogs to use system defaults.
[virtualjaguar] / src / gui / debug / m68kdasmbrowser.cpp
index 0d94aa321adf848d8c9436735fc02e2eba1e120a..931b3db661289cbfd760455f728ab0fbf1066855 100644 (file)
@@ -40,7 +40,9 @@ M68KDasmBrowserWindow::M68KDasmBrowserWindow(QWidget * parent/*= 0*/): QWidget(p
        // Need to set the size as well...
 //     resize(560, 480);
 
-       QFont fixedFont("Lucida Console", 8, QFont::Normal);
+//     QFont fixedFont("Lucida Console", 8, QFont::Normal);
+       QFont fixedFont("", 8, QFont::Normal);
+       fixedFont.setStyleHint(QFont::TypeWriter);
        text->setFont(fixedFont);
 ////   layout->setSizeConstraint(QLayout::SetFixedSize);
        setLayout(layout);
@@ -99,7 +101,7 @@ void M68KDasmBrowserWindow::keyPressEvent(QKeyEvent * e)
 #if 1
        else if (e->key() == Qt::Key_PageUp)
        {
-               memBase -= 480;
+               memBase -= 64;
 
                if (memBase < 0)
                        memBase = 0;
@@ -108,10 +110,10 @@ void M68KDasmBrowserWindow::keyPressEvent(QKeyEvent * e)
        }
        else if (e->key() == Qt::Key_PageDown)
        {
-               memBase += 480;
+               memBase += 64;
 
-               if (memBase > (0x200000 - 480))
-                       memBase = 0x200000 - 480;
+               if (memBase > (0xF00000 - 64))
+                       memBase = 0xF00000 - 64;
 
                RefreshContents();
        }
@@ -128,8 +130,8 @@ void M68KDasmBrowserWindow::keyPressEvent(QKeyEvent * e)
        {
                memBase += 16;
 
-               if (memBase > (0x200000 - 480))
-                       memBase = 0x200000 - 480;
+               if (memBase > (0xF00000 - 64))
+                       memBase = 0xF00000 - 64;
 
                RefreshContents();
        }