Compare commits

...

9 commits

Author SHA1 Message Date
Liz
8d96b38ff3 Update main.c
Some checks failed
Build pico-mac / bins (push) Has been cancelled
2025-08-07 20:38:55 -04:00
Liz
447e711a13 Revert "handle framebuffer the same for 640x480" 2025-08-07 20:34:16 -04:00
Liz
871f7d9853 handle framebuffer the same for 640x480 2025-08-07 20:25:26 -04:00
Liz
561ddc2b0c Update video_hstx.c 2025-08-07 18:49:38 -04:00
Liz
189c6b7f3a swap inversion 2025-08-07 18:36:17 -04:00
Liz
1888b77590 revert main, try different tmds 2025-08-07 16:47:44 -04:00
Liz
d1113ae122 make 640 match 512 2025-08-07 16:37:47 -04:00
Liz
13dfdf6849 not rot, try tmds 2025-08-07 16:23:19 -04:00
Liz
5cdd3aba4e
Update video_hstx.c
shift color bit
2025-08-07 16:12:24 -04:00

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)