Revision b2eb849d hw/cirrus_vga_rop.h

b/hw/cirrus_vga_rop.h
31 31
    int x,y;
32 32
    dstpitch -= bltwidth;
33 33
    srcpitch -= bltwidth;
34

  
35
    if (dstpitch < 0 || srcpitch < 0) {
36
        /* is 0 valid? srcpitch == 0 could be useful */
37
        return;
38
    }
39

  
34 40
    for (y = 0; y < bltheight; y++) {
35 41
        for (x = 0; x < bltwidth; x++) {
36 42
            ROP_OP(*dst, *src);

Also available in: Unified diff