mirror of https://github.com/odrling/Aegisub
Use non-deprecated wxFONT/wxPEN constants
This commit is contained in:
parent
d3484e7382
commit
460b806038
|
@ -99,7 +99,7 @@ LogWindow::LogWindow(agi::Context *c)
|
|||
: wxDialog(c->parent, -1, _("Log window"), wxDefaultPosition, wxDefaultSize, wxCAPTION | wxCLOSE_BOX | wxRESIZE_BORDER)
|
||||
{
|
||||
wxTextCtrl *text_ctrl = new wxTextCtrl(this, -1, "", wxDefaultPosition, wxSize(700,300), wxTE_MULTILINE|wxTE_READONLY);
|
||||
text_ctrl->SetDefaultStyle(wxTextAttr(wxNullColour, wxNullColour, wxFont(8, wxMODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL)));
|
||||
text_ctrl->SetDefaultStyle(wxTextAttr(wxNullColour, wxNullColour, wxFont(8, wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL)));
|
||||
|
||||
wxSizer *sizer = new wxBoxSizer(wxVERTICAL);
|
||||
sizer->Add(text_ctrl, wxSizerFlags(1).Expand().Border());
|
||||
|
|
|
@ -198,7 +198,7 @@ void VideoSlider::OnPaint(wxPaintEvent &) {
|
|||
// Selection border
|
||||
if (HasFocus()) {
|
||||
dc.SetBrush(*wxTRANSPARENT_BRUSH);
|
||||
dc.SetPen(wxPen(shad,1,wxDOT));
|
||||
dc.SetPen(wxPen(shad, 1, wxPENSTYLE_DOT));
|
||||
dc.DrawRectangle(0,0,w,h);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue