Update main.c
Some checks failed
Build pico-mac / bins (push) Has been cancelled

This commit is contained in:
Liz 2025-08-07 20:38:55 -04:00
parent 447e711a13
commit 8d96b38ff3

View file

@ -124,8 +124,11 @@ static void copy_framebuffer() {
uint32_t *src = (uint32_t*)(umac_ram + umac_get_fb_offset());
#if DISP_WIDTH==640 && DISP_HEIGHT==480
uint32_t *dest = umac_framebuffer_mirror;
for(int i=0; i<640*480/32; i++) {
*dest++ = *src++;
for(int i=0; i<512*342/32; i++) {
*dest++ = *src++ ^ 0xffffffff;
}
for(int i=512*342/32; i<640*480/32; i++) {
*dest++ = 0xffffffff;
}
#elif DISP_WIDTH==512 && DISP_HEIGHT==342
#define DISP_XOFFSET ((640 - DISP_WIDTH) / 32 / 2)