Add missing "static" to global variables.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35159 b3059339-0415-0410-9bf9-f77b7e298cf2
Consistently use "self" instead of a global variable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35160 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix compiler warning by specifying that our class implements
NSWindowDelegate.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35161 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix compilation on OSX 10.5


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35162 b3059339-0415-0410-9bf9-f77b7e298cf2
Remove pointless one-line function.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35163 b3059339-0415-0410-9bf9-f77b7e298cf2
Change geometry for corevideo vo to not take dock into account.

It makes the % placements behave non-intuitively, particularly
with an auto-hide dock where it would depend on whether the
dock is visible right when MPlayer starts up.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35164 b3059339-0415-0410-9bf9-f77b7e298cf2
Use xinerama_x/xinerama_y.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35165 b3059339-0415-0410-9bf9-f77b7e298cf2
Avoid some more global variables.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35166 b3059339-0415-0410-9bf9-f77b7e298cf2
Merge declaration and initialization.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35167 b3059339-0415-0410-9bf9-f77b7e298cf2
Deprecate corevideo device_id in favour of -xineramascreen.

It should still work unchanged except for corner-cases with
per-file -xineramascreen settings.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35168 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix menu on newer OSX versions (at least 10.6) without breaking 10.5.


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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35170 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix translation of mouse coordinates when panscan is used.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35171 b3059339-0415-0410-9bf9-f77b7e298cf2
Pass input to "strings" via stdin.

That disables any "clever" parsing that will fail if strings
was not updated to support that particular binary format.
This can easily happen when cross-compiling, but obviously
strings on OSX 10.6 was never update to handle the latest
(64 bit) binary format either and would previously just fail
(the obvious way of falling back to the generic algorithm in
that case would have been too user-friendly I guess...)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35172 b3059339-0415-0410-9bf9-f77b7e298cf2
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