[win] online-installer: fix checkbox and radiobutton offset

This commit is contained in:
SimplestStudio
2024-12-25 13:42:41 +02:00
parent 39a465ec3f
commit f7d6f488dc

View File

@ -241,7 +241,7 @@ void DrawingEngine::DrawStockRestoreIcon()
void DrawingEngine::DrawCheckBox(const std::wstring &text, bool checked)
{
int x = m_rc->left;
int x = m_rc->left + 1;
int y = m_rc->top + (m_rc->bottom - m_rc->top - m_ds->metrics()->value(Metrics::IconHeight)) / 2;
m_memDC = CreateCompatibleDC(m_hdc);
@ -305,7 +305,7 @@ void DrawingEngine::DrawCheckBox(const std::wstring &text, bool checked)
void DrawingEngine::DrawRadioButton(const std::wstring &text, bool checked)
{
int x = m_rc->left;
int x = m_rc->left + 1;
int y = m_rc->top + (m_rc->bottom - m_rc->top - m_ds->metrics()->value(Metrics::IconHeight)) / 2;
m_memDC = CreateCompatibleDC(m_hdc);