Cosmetic: Fix a typo.
CompositionObject: Fix copy-paste fiasco.
Use the proper format type specifier for `unsigned int`.
Add advanced settings page.
CompositionObject: Copy only valid RLE data.

Use proper size type.
Fix warning C6230: Invalid HRESULT use as boolean.
MainFrame: adjust auto-zoom logic for DVB.

We can't determine whether event is triggered after channel change or on
resolution change. Always restore default auto-fit factor.
CSubPicQueueNoThread: Respect invalidation time.
Do not clear surface cache when max texture size has not been changed.

We were removing valid surfaces from the cache for PGS/DVB subtitles.
Basically surface cache was broken.
SubPic queue: Clear queue only when it's needed.

Time can decrease even within the same video frame and
it make no sense to purge whole queue, if we still can reuse buffered
subpic.
MainFrm: Fix initial window size when using non-default mode.

Simplify the code.
MainFrm: Don't force minimum window size. Scale to logo.
Rasterizer: Construct pairs in place.

- emplace_back() is almost 3 times faster in this specific case.
- Various cosmetics.