Skip to content

Commit

Permalink
Variable name change
Browse files Browse the repository at this point in the history
  • Loading branch information
make-42 committed May 13, 2023
1 parent 28017d9 commit 79c14d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/picotorrent/ui/mainframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ MainFrame::MainFrame(std::shared_ptr<pt::Core::Environment> env, std::shared_ptr
m_menuItemFilters(nullptr),
m_ipc(std::make_unique<IPC::Server>(this))
{
m_console = new Console(this, wxID_ANY, m_torrentListModel,m_cfg);
m_console = new Console(this, wxID_ANY, m_torrentListModel, m_cfg);

m_splitter->SetWindowStyleFlag(
m_splitter->GetWindowStyleFlag() | wxSP_LIVE_UPDATE);
Expand Down
6 changes: 3 additions & 3 deletions src/picotorrent/ui/widgets/pieceprogressbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PieceProgressBar::PieceProgressBar(wxWindow* parent, wxWindowID id, std::shared_
Connect(wxEVT_ERASE_BACKGROUND, wxEraseEventHandler(PieceProgressBar::OnEraseBackground));
Connect(wxEVT_PAINT, wxPaintEventHandler(PieceProgressBar::OnPaint));
Connect(wxEVT_SIZE, wxSizeEventHandler(PieceProgressBar::OnSize));
bg_color = (cfg -> IsDarkMode()) ? wxColour(32,32,32) : wxColour(255,255,255);
BGColour = (cfg -> IsDarkMode()) ? wxColour(32,32,32) : wxColour(255,255,255);
}

void PieceProgressBar::UpdateBitfield(lt::typed_bitfield<lt::piece_index_t> const& field)
Expand Down Expand Up @@ -50,7 +50,7 @@ void PieceProgressBar::RenderProgress(wxDC& dc)
wxMemoryDC memDC;

memDC.SelectObject(prg);
memDC.SetBrush(bg_color);
memDC.SetBrush(BGColour);
memDC.SetPen(darkBorder);
memDC.DrawRectangle({ 0, 0 }, prg.GetSize());

Expand All @@ -75,7 +75,7 @@ void PieceProgressBar::RenderProgress(wxDC& dc)
}
else
{
dc.SetBrush(bg_color);
dc.SetBrush(BGColour);
dc.SetPen(wxColor(190, 190, 190));
dc.DrawRectangle(this->GetClientRect());
}
Expand Down
2 changes: 1 addition & 1 deletion src/picotorrent/ui/widgets/pieceprogressbar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace pt::UI::Widgets

private:
void RenderProgress(wxDC& dc);
wxColour bg_color;
wxColour BGColour;
libtorrent::typed_bitfield<libtorrent::piece_index_t> m_bitfield;
};
}

0 comments on commit 79c14d5

Please sign in to comment.