Qt: Clean up messy code.

This commit is contained in:
Sacha committed 2013-11-19 21:02:43 +10:00
1 parent 7adb819a41
commit 47f3e700c4
21 files changed
+23 -257

No files matched your search

-23
View File
@@ -8,7 +8,6 @@
#include <QTimer>
#include "Core/HLE/sceDisplay.h"
#include "GPU/GPUInterface.h"
#include "EmuThread.h"
#include "base/display.h"
Debugger_MemoryTex::Debugger_MemoryTex(QWidget *parent) :
@@ -23,23 +22,6 @@ Debugger_MemoryTex::~Debugger_MemoryTex()
delete ui;
}
void Debugger_MemoryTex::showEvent(QShowEvent *)
{
#ifdef Q_WS_X11
// Hack to remove the X11 crash with threaded opengl when opening the first dialog
EmuThread_LockDraw(true);
QTimer::singleShot(100, this, SLOT(releaseLock()));
#endif
}
void Debugger_MemoryTex::releaseLock()
{
EmuThread_LockDraw(false);
}
void Debugger_MemoryTex::ShowTex(const GPUgstate &state)
{
ui->texaddr->setText(QString("%1").arg(state.texaddr[0] & 0xFFFFFF,8,16,QChar('0')));
@@ -58,8 +40,6 @@ void Debugger_MemoryTex::ShowTex(const GPUgstate &state)
void Debugger_MemoryTex::on_readBtn_clicked()
{
EmuThread_LockDraw(true);
GPUgstate state;
state.texaddr[0] = ui->texaddr->text().toUInt(0,16);
state.texbufwidth[0] = ui->texbufwidth0->text().toUInt(0,16);
@@ -89,7 +69,4 @@ void Debugger_MemoryTex::on_readBtn_clicked()
}
delete[] newData;
EmuThread_LockDraw(false);
}