corevideo: Simplify mouse handling.

Handling of borders etc. should not be done inside the vo.
Neither the old nor the new version will be completely correct,
but the new version is simpler and will work correctly after
fixing a few other parts of the code/making -keepaspect behave
consistently between corevideo and other vos.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35173 b3059339-0415-0410-9bf9-f77b7e298cf2
Move some code around to make splitting into vo-specific and generic code easier.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35174 b3059339-0415-0410-9bf9-f77b7e298cf2
Set up things like fullscreen status etc. before showing the window.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35175 b3059339-0415-0410-9bf9-f77b7e298cf2
Remove local variables that (except for very brief moments before
switching modes) always have the same value as the corresponding
vo_* variables.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35176 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix handling of -ontop and -rootwin.

Once they were set it was impossible to reset them for
following files with -fixed-vo.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35177 b3059339-0415-0410-9bf9-f77b7e298cf2
Use "self".


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35178 b3059339-0415-0410-9bf9-f77b7e298cf2
Move some code around in preparation for following patch.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35179 b3059339-0415-0410-9bf9-f77b7e298cf2
Split out an objective-C common OS X layer, to be reused by -vo gl.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35180 b3059339-0415-0410-9bf9-f77b7e298cf2
Use OSX common layer in -vo gl.

This has many, quite serious issues but already does something
useful and the amount of code changes necessary to make it
work properly should not be too large.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35181 b3059339-0415-0410-9bf9-f77b7e298cf2
Add a hint how you can compile a 64 bit binary on OSX.

I have no idea really why clang works and gcc does not though.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35182 b3059339-0415-0410-9bf9-f77b7e298cf2
Allow compiling -vo gl with OSX backend even if X11 and SDL are not available.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35183 b3059339-0415-0410-9bf9-f77b7e298cf2
Minor code simplification.

Also in preparation for further changes.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35184 b3059339-0415-0410-9bf9-f77b7e298cf2
gl OSX backend: Detect and pass on resize events


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35185 b3059339-0415-0410-9bf9-f77b7e298cf2
gl: support screen redraw on OSX.

This is necessary to support e.g. the smooth fullscreen animations.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35186 b3059339-0415-0410-9bf9-f77b7e298cf2
gl: Disable double-buffering on OS X, it does not work currently an
probably has no benefit anyway.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35187 b3059339-0415-0410-9bf9-f77b7e298cf2
Provide a swap buffer function for OS X.

It does not change any of the issues with double buffering.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35188 b3059339-0415-0410-9bf9-f77b7e298cf2
Remove duplicate redraw call, resize already calls it.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35189 b3059339-0415-0410-9bf9-f77b7e298cf2
gl: Prefer OSX backend over SDL.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35190 b3059339-0415-0410-9bf9-f77b7e298cf2
Document new OSX backend for -vo gl.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35191 b3059339-0415-0410-9bf9-f77b7e298cf2
Add my copyright since the file now contains a relevant amount of code by me.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35192 b3059339-0415-0410-9bf9-f77b7e298cf2