Fix broken DisplayArea

This commit is contained in:
Jaby 2023-04-27 21:23:06 +02:00 committed by Jaby
parent 536c394767
commit 946d669fbc
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#define __JABYENGINE_GPU_IO_HPP__ #define __JABYENGINE_GPU_IO_HPP__
#include "ioport.hpp" #include "ioport.hpp"
#include "../../GPU/gpu_types.hpp" #include "../../GPU/gpu_types.hpp"
#include <stdio.h>
namespace JabyEngine { namespace JabyEngine {
namespace GPU_IO { namespace GPU_IO {
@ -141,7 +142,7 @@ namespace JabyEngine {
return {Helper::construct_cmd(0x04, static_cast<uint32_t>(dir))}; return {Helper::construct_cmd(0x04, static_cast<uint32_t>(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 X = BitRange::from_to(0, 9);
constexpr auto Y = BitRange::from_to(10, 18); constexpr auto Y = BitRange::from_to(10, 18);