summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-07-11 19:14:15 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2014-07-23 00:33:08 +0200
commit46950ee4de0b1f2c30c26467b60e38c6a38d19b8 (patch)
tree195830a185361958d739cf8a70836b4b17c1bf16 /src/core
parentGPU: Emulate memory fills. (diff)
downloadyuzu-46950ee4de0b1f2c30c26467b60e38c6a38d19b8.tar
yuzu-46950ee4de0b1f2c30c26467b60e38c6a38d19b8.tar.gz
yuzu-46950ee4de0b1f2c30c26467b60e38c6a38d19b8.tar.bz2
yuzu-46950ee4de0b1f2c30c26467b60e38c6a38d19b8.tar.lz
yuzu-46950ee4de0b1f2c30c26467b60e38c6a38d19b8.tar.xz
yuzu-46950ee4de0b1f2c30c26467b60e38c6a38d19b8.tar.zst
yuzu-46950ee4de0b1f2c30c26467b60e38c6a38d19b8.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hw/gpu.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index 230a12d46..0ee6b7c3b 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -353,7 +353,22 @@ void Update() {
/// Initialize hardware
void Init() {
g_last_ticks = Core::g_app_core->GetTicks();
- SetFramebufferLocation(FRAMEBUFFER_LOCATION_FCRAM);
+// SetFramebufferLocation(FRAMEBUFFER_LOCATION_FCRAM);
+ SetFramebufferLocation(FRAMEBUFFER_LOCATION_VRAM);
+
+ // TODO: Width should be 240 instead?
+ g_regs.top_framebuffer.width = 480;
+ g_regs.top_framebuffer.height = 400;
+ g_regs.top_framebuffer.stride = 480*3;
+ g_regs.top_framebuffer.color_format = Registers::FramebufferFormat::RGB8;
+ g_regs.top_framebuffer.active_fb = 0;
+
+ g_regs.sub_framebuffer.width = 480;
+ g_regs.sub_framebuffer.height = 400;
+ g_regs.sub_framebuffer.stride = 480*3;
+ g_regs.sub_framebuffer.color_format = Registers::FramebufferFormat::RGB8;
+ g_regs.sub_framebuffer.active_fb = 0;
+
NOTICE_LOG(GPU, "initialized OK");
}