23 :
wxSplashScreen(bitmap, wxSPLASH_CENTRE_ON_SCREEN | wxSPLASH_NO_TIMEOUT,
24 0,
nullptr, wxID_ANY, wxDefaultPosition, wxDefaultSize,
25 wxBORDER_NONE | wxFRAME_NO_TASKBAR | wxFRAME_SHAPED)
37 wxCoord lf_width, lf_height, lf_descend;
38 dc.GetTextExtent(release, &lf_width, &lf_height, &lf_descend,
nullptr, &largeFont);
40 wxCoord sf_width, sf_height, sf_descend;
41 dc.GetTextExtent(release + revision, &sf_width, &sf_height, &sf_descend,
nullptr, &smallFont);
43 int text_center = 450;
44 int x_offset = text_center;
51 x_offset = text_center - (sf_width)/2;
52 dc.SetFont(smallFont);
53 dc.DrawText(release + revision, x_offset, (y - sf_height + sf_descend));
55 x_offset = text_center - (lf_width)/2;
56 dc.SetFont(largeFont);
57 dc.DrawText(release, x_offset, (y - lf_height + lf_descend));
62 wxCoord sm_width, sm_height, sm_descend;
63 dc.GetTextExtent(
_(
"SAFE MODE"), &sm_width, &sm_height, &sm_descend,
nullptr, &smallFont);
64 dc.SetFont(smallFont);
65 dc.SetTextForeground(*
wxRED);
66 x_offset = text_center - (sm_width)/2;
67 dc.DrawText(
_(
"SAFE MODE"), x_offset, (y - sm_height + sm_descend + lf_height+10));
static bool GetSafeMode()
const wxString & _(const wxString &string)
static wxString GetRevisionString()
static void DrawReleaseInfo(class wxDC &dc)
void OnCloseWindow(wxCloseEvent &event)