Game-GUI
Game-GUI copied to clipboard
Problem with extend_rect
Hello - I have a problem with a code of extend_rect method, I think: it causes second and third Radio to be drawn very large. I have changed the code as below: void extend_rect(Rect &r) { r.sx = std::max(r.sx, /_x + */sx); r.sy = std::max(r.sy, /_y + */sy); } and it is now ok, but I wondering how does it worked before?
Regards Pawel