修复字体库拉伸BUG
This commit is contained in:
parent
8a1f1f3717
commit
16466d41ad
|
@ -169,9 +169,9 @@ class CDlgZk : public CDialogEx
|
||||||
mono_threshold_ = threshold;
|
mono_threshold_ = threshold;
|
||||||
if (stretch)
|
if (stretch)
|
||||||
{
|
{
|
||||||
BITMAPINFO bi = { 0 };
|
BITMAP bi = { 0 };
|
||||||
GetObject(bmp, sizeof(bi), &bi);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -206,9 +206,9 @@ class CDlgZk : public CDialogEx
|
||||||
mono_threshold_ = threshold;
|
mono_threshold_ = threshold;
|
||||||
if (stretch)
|
if (stretch)
|
||||||
{
|
{
|
||||||
BITMAPINFO bi = { 0 };
|
BITMAP bi = { 0 };
|
||||||
GetObject(bmp, sizeof(bi), &bi);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue