[MPlayer-dev-eng] [PATCH] directx, typo, fs

Sascha Sommer saschasommer at freenet.de
Sat Apr 5 15:10:29 CEST 2003


> Hello,
>
> Attached below is a patch for vo_directx.c.  It's a patch I've just
> added to my cygwin packages, and it seemed clean enough to submit for
> approval.  It does the following:
>
> 1) moves the fullscreen toggling code into a function called toggle_fs
> 2) fixes a small typo in the keystroke handling code

Thanks, I will apply this

> 3) when directx window hears ALT+ENTER, toggles fullscreen status
>
> I could have done this by pushing 'f' to mplayer's input buffer, but
> since a user may have other keybindings for 'f', this seemed bad.  I
> tried to figure out how to add support for ALT+whatever in keycodes.h,
> but the only such keys I found to have unique codes are ALT+0 through
> ALT+9 (0x140-0x149, IIRC).  All others generated two codes in
> succession, such as ALT+k producing 'k',0x1b for any letter like 'k'.
> Because of this, I just decided that having ALT+ENTER for fullscreen
> could probably be okay as a directx-specific feature.  (Directx, unlike
> linux console, gives a unique way to identify this.)
>
> It's a common keybinding for windows video players IMHO, so I'm going
> to include it in my packages anyway for the sake of those who've never
> used mplayer on linux and wouldn't know to hit 'f'.  I hope you find
> this useful enough to commit, and if not I'll still have it in my
> package's patch set, no hurt feelings.

Would it help you if I commit a #if 0 ed version that calls control to
switch fullscreen?
I personally do not like the idea that the behaviour depends on which window
the keyboard focus is on.
I like to have the console in foreground.

> ----
> Off-topic, but related to cygwin packages:
>
> I haven't been running the main branch on cygwin.  Does anyone notice if
> there is a performance boost when using osdep/timer-win over
> linux/timer-lx under cygwin?  Would it be worth patching my 0_90 sources
> to backport it?

Dunno in general, but for me it helps.

> And I've also noticed that a few ifdef MINGW lines have popped up in
> main branch.  Is mplayer getting closer to being able to compile with
> only mingw?  I haven't tried it in months.
>

See my mail on cygwin list.

Sascha



More information about the MPlayer-dev-eng mailing list