This commit is contained in:
parent
447e711a13
commit
8d96b38ff3
1 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue