• A
    cirrus_vga: fix division by 0 for color expansion rop · 92d675d1
    Aurelien Jarno 提交于
    Commit d85d0d38 introduces a regression
    with Windows ME that leads to a division by 0 and a crash.
    
    It uses the color expansion rop with the source pitch set to 0. This is
    something allowed, as the manual explicitely says "When the source of
    color-expand data is display memory, the source pitch is ignored.".
    
    This patch fixes this regression by computing sx, sy and others
    variables only if they are going to be used later, that is for a plain
    copy ROP. It basically consists in moving code.
    Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
    92d675d1
cirrus_vga.c 96.5 KB