Commit 59195b36 authored by Daniel Vogel's avatar Daniel Vogel

new multiwindow demo, fixed bug in button

parent f829b022
......@@ -84,7 +84,7 @@ public:
// the CONTROLLER
void mouseClick(int mx, int my) {
float dist = sqrt(pow(mx - x, 2) + pow(my - y, 2));
if (dist < diameter) {
if (dist < diameter / 2) {
toggle();
}
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment