diff options
| author | 2014-04-12 19:01:33 -0400 | |
|---|---|---|
| committer | 2014-04-12 19:04:33 -0400 | |
| commit | 68a8594d041c416301feeb43bb9f1c41d681b795 (patch) | |
| tree | badb70e1b40d88ba4eb2ddbb001087d22bb1f7e8 /src/citra_qt/bootmanager.cpp | |
| parent | Show symbols in disasm (diff) | |
| download | yuzu-68a8594d041c416301feeb43bb9f1c41d681b795.tar.gz yuzu-68a8594d041c416301feeb43bb9f1c41d681b795.tar.xz yuzu-68a8594d041c416301feeb43bb9f1c41d681b795.zip | |
Init window size from VideoCore. Start changing the default window behavior...
Diffstat (limited to 'src/citra_qt/bootmanager.cpp')
| -rw-r--r-- | src/citra_qt/bootmanager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index 75abcd8bf..31958ac28 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include "core/core.h" | 7 | #include "core/core.h" |
| 8 | #include "core/loader.h" | 8 | #include "core/loader.h" |
| 9 | #include "video_core/video_core.h" | ||
| 9 | 10 | ||
| 10 | #include "version.h" | 11 | #include "version.h" |
| 11 | 12 | ||
| @@ -35,7 +36,8 @@ void EmuThread::run() | |||
| 35 | exec_cpu_step = false; | 36 | exec_cpu_step = false; |
| 36 | 37 | ||
| 37 | Core::SingleStep(); | 38 | Core::SingleStep(); |
| 38 | emit CPUStepped(); | 39 | if (!cpu_running) |
| 40 | emit CPUStepped(); | ||
| 39 | } | 41 | } |
| 40 | } | 42 | } |
| 41 | } | 43 | } |
| @@ -103,9 +105,8 @@ GRenderWindow::GRenderWindow(QWidget* parent) : QWidget(parent), emu_thread(this | |||
| 103 | // TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground, WA_DontShowOnScreen, WA_DeleteOnClose | 105 | // TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground, WA_DontShowOnScreen, WA_DeleteOnClose |
| 104 | 106 | ||
| 105 | child = new GGLWidgetInternal(this); | 107 | child = new GGLWidgetInternal(this); |
| 106 | |||
| 107 | QBoxLayout* layout = new QHBoxLayout(this); | 108 | QBoxLayout* layout = new QHBoxLayout(this); |
| 108 | resize(640, 480); // TODO: Load size from config instead | 109 | resize(VideoCore::kScreenTopWidth, VideoCore::kScreenTopHeight + VideoCore::kScreenBottomHeight); |
| 109 | layout->addWidget(child); | 110 | layout->addWidget(child); |
| 110 | layout->setMargin(0); | 111 | layout->setMargin(0); |
| 111 | setLayout(layout); | 112 | setLayout(layout); |