Revision d85d0d38 hw/cirrus_vga.c
b/hw/cirrus_vga.c | ||
---|---|---|
730 | 730 |
s->get_resolution((VGAState *)s, &width, &height); |
731 | 731 |
|
732 | 732 |
/* extra x, y */ |
733 |
sx = (src % (width * depth)) / depth;
|
|
734 |
sy = (src / (width * depth));
|
|
735 |
dx = (dst % (width *depth)) / depth;
|
|
736 |
dy = (dst / (width * depth));
|
|
733 |
sx = (src % ABS(s->cirrus_blt_srcpitch)) / depth;
|
|
734 |
sy = (src / ABS(s->cirrus_blt_srcpitch));
|
|
735 |
dx = (dst % ABS(s->cirrus_blt_dstpitch)) / depth;
|
|
736 |
dy = (dst / ABS(s->cirrus_blt_dstpitch));
|
|
737 | 737 |
|
738 | 738 |
/* normalize width */ |
739 | 739 |
w /= depth; |
Also available in: Unified diff