vo_direct3d: use new VO API, and do some minor reformatting

The minor reformats are mainly about adding more line breaks to fit a 80
column limit.

Using the new VO API implies removing all non-const global variables
(because that is one important goal of the new API), so do that as well.
The code already had all variables in a context struct, and changing all
the functions to pass this context struct along was all what had to be
done.

Also handle redrawing properly: if something changes that requires an
immediate redrawing operation (e.g. setting video equalizers when paused
or when playback is slow), vo->want_redraw should be set, instead of
redrawing on your own.
This commit is contained in:
wm4 2011-11-04 07:33:51 +01:00
parent 1eaf5d2626
commit 5ee7797bf8
1 changed files with 298 additions and 269 deletions

File diff suppressed because it is too large Load Diff