Skip to content
Snippets Groups Projects
Commit 5be34b0a authored by daniel's avatar daniel
Browse files

mensactrl: Fix blitting to an area with a y offset

parent 8c5828e7
Branches
Tags
No related merge requests found
......@@ -163,8 +163,8 @@ int copyArea(struct mensa_fb *mensafb, int x, int y, int w, int h, uint8_t *data
return -1;
}
for (row = y; row < y + h; row++) {
int idx = row * mensafb->x_res + x;
for (row = 0; row < h; row++) {
int idx = (row + y) * mensafb->x_res + x;
memcpy(&mensafb->inputfb[idx], &data[row*w], w);
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment