FIX: fix bbl logo not in center of SplashScreen

Change-Id: I38e5ffebf2500ee4239e09c27e238de28da8463b
This commit is contained in:
Stone Li 2022-12-12 16:37:21 +08:00 committed by Lane.Wei
parent 89f7065d87
commit db94f39f78
1 changed files with 2 additions and 1 deletions

View File

@ -301,9 +301,10 @@ public:
BitmapCache bmp_cache;
int logo_margin = FromDIP(72 * m_scale);
int logo_size = FromDIP(122 * m_scale);
int logo_width = FromDIP(94 * m_scale);
wxBitmap logo_bmp = *bmp_cache.load_svg("splash_logo", logo_size, logo_size);
int logo_y = top_margin + title_rect.GetHeight() + logo_margin;
memDc.DrawBitmap(logo_bmp, (width - logo_size) / 2, logo_y, true);
memDc.DrawBitmap(logo_bmp, (width - logo_width) / 2, logo_y, true);
// calculate position for the dynamic text
int text_margin = FromDIP(80 * m_scale);