From d932a248c3b60d760f59d2ec17aaaee073085ee9 Mon Sep 17 00:00:00 2001 From: 0xmac Date: Thu, 12 Dec 2024 13:23:30 +0100 Subject: [PATCH] Fixed VRAM Size --- src/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video.c b/src/video.c index e98188a..5a0ce96 100644 --- a/src/video.c +++ b/src/video.c @@ -36,7 +36,7 @@ static sfColor *videoColorIndex[] = { &(sfColor){ 0, 0xFF, 0xFF }, &(sfColor){ 0xFF, 0xFF, 0xFF },*/ }; -static uint8_t videoMemory[0x7FFF]; +static uint8_t videoMemory[0x8000]; void writeVideo(){ @@ -55,7 +55,7 @@ void initVideo(){ videoModified = 1; videoMode = 0x01; - for (int i = 0; i < 0x7FFF; i++) videoMemory[i] = rand(); + for (int i = 0; i < 0x8000; i++) videoMemory[i] = rand(); } void updateVideo(){