From 946d669fbc0f06a6747b0dfd6630ccb6619c1831 Mon Sep 17 00:00:00 2001 From: Jaby Date: Thu, 27 Apr 2023 21:23:06 +0200 Subject: [PATCH] Fix broken DisplayArea --- include/PSX/System/IOPorts/gpu_io.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/PSX/System/IOPorts/gpu_io.hpp b/include/PSX/System/IOPorts/gpu_io.hpp index 43d93dfb..37307d49 100644 --- a/include/PSX/System/IOPorts/gpu_io.hpp +++ b/include/PSX/System/IOPorts/gpu_io.hpp @@ -2,6 +2,7 @@ #define __JABYENGINE_GPU_IO_HPP__ #include "ioport.hpp" #include "../../GPU/gpu_types.hpp" +#include namespace JabyEngine { namespace GPU_IO { @@ -141,7 +142,7 @@ namespace JabyEngine { return {Helper::construct_cmd(0x04, static_cast(dir))}; } - static constexpr GP1_t DisplayArea(uint16_t x, uint16_t y) { + static constexpr GP1_t DisplayArea(uint32_t x, uint32_t y) { constexpr auto X = BitRange::from_to(0, 9); constexpr auto Y = BitRange::from_to(10, 18);