• Zebediah Figura's avatar
    winex11: Resize the screen when changing CRTC modes. · 70d842b1
    Zebediah Figura authored
    Based on a patch by Gabriel Corona.
    
    According to the RandR spec for RRSetCrtcConfig:
    
    "The entire area of the CRTC must fit within the screen size, else a Match
    error results. As an example, rotating the screen so that a single CRTC fills
    the entire screen before and after may necessitate disabling the CRTC,
    resizing the screen, then re-enabling the CRTC at the new configuration to
    avoid an invalid intermediate configuration."
    
    This patch involves resizing the screen also when shrinking a CRTC, not just
    when expanding it past the current screen size. This is partially because we
    have no way to reliably determine the current display width (DisplayWidth() is
    never updated past opening the connection, and RandR exposes no way to
    retrieve the screen dimensions), and partially because it's probably what the
    user wants anyway (e.g. it's what the `xrandr` configuration app does when the
    screen size is not expliticly specified).
    
    This patch fixes TestBot failures on the Debian machines for ddraw, d3d8, and
    d3d9 device tests.
    
    Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=33290Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    70d842b1
Name
Last commit
Last update
..
Makefile.in Loading commit data...
bitblt.c Loading commit data...
brush.c Loading commit data...
clipboard.c Loading commit data...
desktop.c Loading commit data...
event.c Loading commit data...
graphics.c Loading commit data...
ime.c Loading commit data...
init.c Loading commit data...
keyboard.c Loading commit data...
mouse.c Loading commit data...
mwm.h Loading commit data...
opengl.c Loading commit data...
palette.c Loading commit data...
pen.c Loading commit data...
settings.c Loading commit data...
systray.c Loading commit data...
version.rc Loading commit data...
vulkan.c Loading commit data...
window.c Loading commit data...
winex11.drv.spec Loading commit data...
wintab.c Loading commit data...
x11drv.h Loading commit data...
x11drv_main.c Loading commit data...
xcomposite.h Loading commit data...
xdnd.c Loading commit data...
xim.c Loading commit data...
xinerama.c Loading commit data...
xrandr.c Loading commit data...
xrender.c Loading commit data...
xvidmode.c Loading commit data...