Skip to content

Commit

Permalink
[win] online-installer: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplestStudio committed Sep 17, 2024
1 parent 4fb0921 commit 1754bb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion win-linux/extras/online-installer/src/uiclasses/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1754bb6

Please sign in to comment.