summaryrefslogtreecommitdiffstats
path: root/firmware/asm/lcd-as-memframe.c
blob: f7f3473fad64fe6fb1e25d557d647042e2f19d20 (plain)
1
2
3
4
5
6
7
8
9
10
11

#include <string.h>
#include "lcd.h"
void lcd_copy_buffer_rect(fb_data *dst, fb_data *src, int width, int height)
{
    do {
        memcpy(dst, src, width * sizeof(fb_data));
        src += LCD_WIDTH;
        dst += LCD_WIDTH;
    } while (--height);
}