diff --git a/tools/apps/hgjson/DlgZk.h b/tools/apps/hgjson/DlgZk.h index 8a40b6b..da82db4 100644 --- a/tools/apps/hgjson/DlgZk.h +++ b/tools/apps/hgjson/DlgZk.h @@ -169,9 +169,9 @@ class CDlgZk : public CDialogEx mono_threshold_ = threshold; if (stretch) { - BITMAPINFO bi = { 0 }; + BITMAP bi = { 0 }; GetObject(bmp, sizeof(bi), &bi); - StretchBlt(hdc_, 0, 0, size.cx, size.cy, dc, 0, 0, bi.bmiHeader.biWidth, bi.bmiHeader.biWidth, SRCCOPY); + StretchBlt(hdc_, 0, 0, size.cx, size.cy, dc, 0, 0, bi.bmWidth, bi.bmHeight, SRCCOPY); } else { @@ -206,9 +206,9 @@ class CDlgZk : public CDialogEx mono_threshold_ = threshold; if (stretch) { - BITMAPINFO bi = { 0 }; + BITMAP bi = { 0 }; GetObject(bmp, sizeof(bi), &bi); - StretchBlt(hdc_, 0, 0, size.cx, size.cy, dc, 0, 0, bi.bmiHeader.biWidth, bi.bmiHeader.biWidth, SRCCOPY); + StretchBlt(hdc_, 0, 0, size.cx, size.cy, dc, 0, 0, bi.bmWidth, bi.bmHeight, SRCCOPY); } else { diff --git a/tools/solution/Release/hgjson.exe b/tools/solution/Release/hgjson.exe index cf0b3e2..10b2727 100644 Binary files a/tools/solution/Release/hgjson.exe and b/tools/solution/Release/hgjson.exe differ