git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25560
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
StretchBltModeChanger changeMode(GetHdc(), COLORONCOLOR);
+ // Figure out what co-ordinate system we're supposed to specify
+ // ysrc in.
+ const LONG hDIB = ds.dsBmih.biHeight;
+ if ( hDIB > 0 )
+ {
+ // reflect ysrc
+ ysrc = hDIB - (ysrc + height);
+ }
+
if ( ::StretchDIBits(GetHdc(),
xdest, ydest,
width, height,
- 0, 0,
+ xsrc, ysrc,
width, height,
ds.dsBm.bmBits,
(LPBITMAPINFO)&ds.dsBmih,