summaryrefslogtreecommitdiff
path: root/src/cairo-surface-observer-inline.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-04-02 00:32:56 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2013-04-02 08:39:05 +0100
commite66e9ac12e3e11af76f14e8de3cfee72d4299864 (patch)
treef890ebf2642c6e9995251783186b4c3838e1de25 /src/cairo-surface-observer-inline.h
parent0446fae26d35dc4e31aadc498f0f9b48b21d2c45 (diff)
win32: fix corrupted drawing
Fix src bitmap coordinates, which origin is bottom-left. This is apparently a bug in StretchDIBits(), according to some comments on MSDN API documentation. The backend used to have this coordinate change in the past: if (!StretchDIBits (dst->dc, /* dst x,y,w,h */ dst_r.x, dst_r.y + dst_r.height - 1, dst_r.width, - (int) dst_r.height, /* src x,y,w,h */ src_r.x, src_extents.height - src_r.y + 1, src_r.width, - (int) src_r.height, src_image->data, &bi, DIB_RGB_COLORS, SRCCOPY)) https://bugs.freedesktop.org/show_bug.cgi?id=61876
Diffstat (limited to 'src/cairo-surface-observer-inline.h')
0 files changed, 0 insertions, 0 deletions