ref: 3bf0f4fdcf9e1a61881c20ee8162924f952ba8e0
parent: c47e5c9807a0d3bf86c2bc227482584aaca7bb9c
author: rodri <rgl@antares-labs.eu>
date: Fri Aug 2 12:04:54 EDT 2024
fb: fix the destination drawing rectangle.
--- a/fb.c
+++ b/fb.c
@@ -99,7 +99,7 @@
qlock(ctl);
fb = ctl->getfb(ctl);
- loadimage(dst, dst->r, (uchar*)fb->cb, Dx(fb->r)*Dy(fb->r)*4);
+ loadimage(dst, rectaddpt(fb->r, dst->r.min), (uchar*)fb->cb, Dx(fb->r)*Dy(fb->r)*4);
qunlock(ctl);
}
@@ -149,7 +149,7 @@
qlock(ctl);
fb = ctl->getfb(ctl);
- loadmemimage(dst, dst->r, (uchar*)fb->cb, Dx(fb->r)*Dy(fb->r)*4);
+ loadmemimage(dst, rectaddpt(fb->r, dst->r.min), (uchar*)fb->cb, Dx(fb->r)*Dy(fb->r)*4);
qunlock(ctl);
}