summaryrefslogtreecommitdiff
path: root/src/core/hw/gpu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hw/gpu.cpp')
-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() {
353/// Initialize hardware 353/// Initialize hardware
354void Init() { 354void Init() {
355 g_last_ticks = Core::g_app_core->GetTicks(); 355 g_last_ticks = Core::g_app_core->GetTicks();
356 SetFramebufferLocation(FRAMEBUFFER_LOCATION_FCRAM); 356// SetFramebufferLocation(FRAMEBUFFER_LOCATION_FCRAM);
357 SetFramebufferLocation(FRAMEBUFFER_LOCATION_VRAM);
358
359 // TODO: Width should be 240 instead?
360 g_regs.top_framebuffer.width = 480;
361 g_regs.top_framebuffer.height = 400;
362 g_regs.top_framebuffer.stride = 480*3;
363 g_regs.top_framebuffer.color_format = Registers::FramebufferFormat::RGB8;
364 g_regs.top_framebuffer.active_fb = 0;
365
366 g_regs.sub_framebuffer.width = 480;
367 g_regs.sub_framebuffer.height = 400;
368 g_regs.sub_framebuffer.stride = 480*3;
369 g_regs.sub_framebuffer.color_format = Registers::FramebufferFormat::RGB8;
370 g_regs.sub_framebuffer.active_fb = 0;
371
357 NOTICE_LOG(GPU, "initialized OK"); 372 NOTICE_LOG(GPU, "initialized OK");
358} 373}
359 374