mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-05-24 04:25:10 +02:00
cp: slightly less stupid dclear()
This commit is contained in:
parent
48718bf9be
commit
282f56fdc1
1 changed files with 3 additions and 2 deletions
|
@ -7,8 +7,9 @@ void dclear(uint16_t color)
|
||||||
{
|
{
|
||||||
// TODO: CP: DMA support for dclear()
|
// TODO: CP: DMA support for dclear()
|
||||||
#if GINT_HW_CP
|
#if GINT_HW_CP
|
||||||
for(int i = 0; i < DWIDTH * DHEIGHT; i++)
|
uint32_t color4 = (color << 16) | color;
|
||||||
gint_vram[i] = color;
|
for(int i = 0; i < DWIDTH * DHEIGHT / 2; i++)
|
||||||
|
((uint32_t *)gint_vram)[i] = color4;
|
||||||
#else
|
#else
|
||||||
bool full_width = (dwindow.left == 0 && dwindow.right == DWIDTH);
|
bool full_width = (dwindow.left == 0 && dwindow.right == DWIDTH);
|
||||||
bool dma_aligned = !(dwindow.top & 3) && !(dwindow.bottom & 3);
|
bool dma_aligned = !(dwindow.top & 3) && !(dwindow.bottom & 3);
|
||||||
|
|
Loading…
Add table
Reference in a new issue