framebuffer things
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user