修复字体库拉伸BUG

This commit is contained in:
gb 2024-02-06 12:38:13 +08:00
parent 8a1f1f3717
commit 16466d41ad
2 changed files with 4 additions and 4 deletions

View File

@ -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.