Fix broken DisplayArea

This commit is contained in:
jaby 2023-04-27 21:23:06 +02:00
parent 49a6873ad5
commit ad18c89c0b
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#define __JABYENGINE_GPU_IO_HPP__
#include "ioport.hpp"
#include "../../GPU/gpu_types.hpp"
#include <stdio.h>
namespace JabyEngine {
namespace GPU_IO {
@ -141,7 +142,7 @@ namespace JabyEngine {
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 Y = BitRange::from_to(10, 18);