修复字体库拉伸BUG
This commit is contained in:
parent
8a1f1f3717
commit
16466d41ad
|
@ -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
|
||||
{
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue