mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win] online-installer: fix checkbox and radiobutton offset
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user