openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

Fixed windowing/windowExample

Open FMagnani opened this issue 1 year ago • 0 comments

The behaviour was not the expected one.

The bounce of the ball on any of the 4 walls always led to an update of the window position towards positive y, making the window to steadily move towards the lower end of the screen.

This was due to the initialization of the variables describing the window position inside ofApp::update().

Now, the variables are initialized in ofApp.h and they're just updated into ofApp::update(). The behaviour is now as expected.

FMagnani avatar Nov 24 '24 14:11 FMagnani