X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fdebug%2Fm68kdasmbrowser.cpp;h=969c5e8f7226f81755a324fab08c85d9966ecfff;hb=d207b11e613703aff7d00191c4595b7359f29700;hp=0d94aa321adf848d8c9436735fc02e2eba1e120a;hpb=dffa89ebdee4d328a8e166b30fcdf38a3fc54b28;p=virtualjaguar diff --git a/src/gui/debug/m68kdasmbrowser.cpp b/src/gui/debug/m68kdasmbrowser.cpp index 0d94aa3..969c5e8 100644 --- a/src/gui/debug/m68kdasmbrowser.cpp +++ b/src/gui/debug/m68kdasmbrowser.cpp @@ -41,6 +41,8 @@ M68KDasmBrowserWindow::M68KDasmBrowserWindow(QWidget * parent/*= 0*/): QWidget(p // resize(560, 480); 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(); }