framebuffer things

This commit is contained in:
Dylan Smith
2026-01-15 16:49:53 -05:00
parent c77baa9724
commit 6711b5dcc1
7 changed files with 67 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
#include "graphics.h"
#include "display.h"
void DisplayTest(pixel_t color)
{
@@ -6,7 +7,7 @@ void DisplayTest(pixel_t color)
{
for (uint16_t w = 0; w < DISPLAY_WIDTH; w++)
{
framebuffer[(h * DISPLAY_WIDTH) + w] = color;
next_framebuffer[(h * DISPLAY_WIDTH) + w] = color;
}
}
@@ -20,7 +21,7 @@ void DrawBox(uint32_t topleft_x_loc, uint32_t topleft_y_loc, uint32_t width, uin
{
if (x < DISPLAY_WIDTH && y < DISPLAY_HEIGHT)
{
framebuffer[(y * DISPLAY_WIDTH) + x] = color;
next_framebuffer[(y * DISPLAY_WIDTH) + x] = color;
}
}
}