Only compute bounding box on change.

Instead of computing the bounding box for each frame do it once at startup and
whenever a display size or aspect change is reported. This saves some cpu
cycles.

Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-by: Soeren Grunewald <soeren.grunewald@avionc-design.de>
Fix build warning.

Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Improve code style.

Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Compute bounding box after window resize.

With commit 53936de14ac "Only compute bounding box on change.", the bounding
box was not computed on a window size change. To fix this recompute the
bounding box whenever a resize event occurs on the output window.

To avoid forward declaration we move the compute_bounding_box function.

Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-by: Julian Scheel <julian@jusst.de>
Add .gitignore

Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-by: Julian Scheel <julian@jusst.de>