[patch] Fake display interface
hintak_leung at yahoo.co.uk
Fri Sep 2 14:35:58 CDT 2011
--- On Fri, 2/9/11, Jari Vetoniemi <mailroxas at gmail.com> wrote:
> I personally hate when applications decide to change my
> resolution without asking me, or some applications just
> won't run
> inside window.
> So I did fake display interface for the winex11.drv. It
> allows you to
> send any display resolution and frequency to the
> application, but it
> does not change resolution.
> It's small and simple patch, and won't probably ever be
> included into
> the mainline wine. However I'll post it here as it might be
> useful for
> To enable, create string key UseFakeDisp with value Y in
> H_C_U/Software/Wine/X11 Driver
> Default fake resolution is 800x600 60HZ, you can change
> default with
> registry keys FakeDispHeight, FakeDispWidth, FakeDispFreq
> You can also use env variable
> WINE_FAKEDISP=WIDTHxHEIGHT_FREQ (eg.
> Might improve it later to use the same syntax for default
> and allow multiple fake resolutions to be defined with ;
> This is also useful for dual head setups where you may want
> to run
> game or application fullscreen on other monitor while still
> the other alive.
> There is also interesting side effect: While some
> applications throw
> error or won't run on resolutions they don't support, some
> applications that don't support them still run with the
> specified. Eg. I can run Ys games with 1440x900 resolution
> where they
> normally would not run, and they look great.
In winecfg there is a way of configuring wine to run under its own desktop window (and having any window application's windows running inside that), instead of having the unix host's window manager managing the window application's window. Have you tried using that? Granted it is a bit awkward for what you want to do (having to go into winecfg to change the desktop's resolution and resetting it afterwards, instead of passing the resolution in per application), but may be improving on that functionality in winecfg could get your code included eventually somehow.
More information about the wine-devel