Fix persisting the splitter position in SplitterWindow.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Make sure that all pending objects are deleted right after the main loop exits.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Prefer Y axis over X axes when computing the new texture rotation angle when texture lock is on.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>