diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2011-03-25 19:17:00 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2011-03-29 09:04:18 +0200 |
commit | cdb04224db69a6b3beb66c99879e20917b8b0fb2 (patch) | |
tree | 22364a65c785ace7fdc7236ad86250c0117e0d17 /src/vmwarevideo.c | |
parent | 9a8f0af8782fd5e9de2d71dfa86fad1d48d52b64 (diff) |
vmwlegacy: Fix segfault and setup of initial mode.
The fact that modes were added without names caused segfaults on older
X servers. At least up to and including Xserver 1.4.
Also, for some reason, at least Xserver 1.4 insists on setting the first mode
in the modelist, even if we set another mode as the current one.
Work around this by inserting a new mode with the current screen dimensions,
and add that modename last to the array of display requested mode names.
This means that if none of the previous mode names are found, we will at least
find the newly inserted mode.
Also, if there are no requested mode names at all, the driver previously
chose the largest mode that fit the timings. Now we will, in that case,
always select the newly inserted mode and thus not change resolution unless
specified.
Also add an option to not add this default mode. The option
"AddDefaultMode" is true by default.
Finally when we restore registers at exit and VT switch, make sure we
reprogram the initial width, height and bpp for the next time we start a
server.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'src/vmwarevideo.c')
0 files changed, 0 insertions, 0 deletions