mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-04 20:10:42 +02:00
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
|
||
|---|---|---|
| .. | ||
| cairo-win32-debug.c | ||
| cairo-win32-device.c | ||
| cairo-win32-display-surface.c | ||
| cairo-win32-font.c | ||
| cairo-win32-gdi-compositor.c | ||
| cairo-win32-printing-surface.c | ||
| cairo-win32-private.h | ||
| cairo-win32-surface.c | ||
| cairo-win32-system.c | ||