[win] online-installer: debug

This commit is contained in:
SimplestStudio
2024-09-17 10:38:59 +03:00
parent 4fb0921302
commit 1754bb6f87
2 changed files with 3 additions and 3 deletions

View File

@ -133,8 +133,8 @@ void DrawingEngine::DrawTopBorder(int brdWidth, COLORREF brdColor) const
{
HPEN pen = CreatePen(PS_SOLID, brdWidth, brdColor);
HPEN oldPen = (HPEN)SelectObject(m_hdc, pen);
MoveToEx(m_hdc, m_rc->left, m_rc->top, NULL);
LineTo(m_hdc, m_rc->right, m_rc->top);
MoveToEx(m_hdc, m_rc->left - 1, m_rc->top + brdWidth - 1, NULL);
LineTo(m_hdc, m_rc->right, m_rc->top + brdWidth - 1);
SelectObject(m_hdc, oldPen);
DeleteObject(pen);
}

View File

@ -25,7 +25,7 @@ static double GetLogicalDpi(HWND hWnd)
UINT(WINAPI *_GetDpiForWindow)(HWND) = NULL;
*(FARPROC*)&_GetDpiForWindow = GetProcAddress(module, "GetDpiForWindow");
if (_GetDpiForWindow)
return _GetDpiForWindow(hWnd)/96;
return (double)_GetDpiForWindow(hWnd)/96;
}
HDC hdc = GetDC(NULL);
double dpi = (double)GetDeviceCaps(hdc, LOGPIXELSX)/96;