[fix] clamp dirty rects to canvas area
[fix] clamp dirty rects to canvas area

Signed-off-by: David Oberhollenzer <ef97309e490485c1bad5018f0617d7fa37bc07ac@tele2.at>

AgentD/sgui,AgentD/sgui,AgentD/sgui