mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-04-06 00:32:05 +02:00
Remove wxTRANSPARENT_WINDOW flag for wxWidgets 3.3 compatibility
wxTRANSPARENT_WINDOW is removed in wxWidgets 3.3. Remove all 3 occurrences in MainFrame.cpp: - ResizeEdgePanel constructor: already uses wxBG_STYLE_TRANSPARENT via SetBackgroundStyle(), so the flag was redundant - slice_panel and print_panel: drop the style parameter entirely (defaults to 0)
This commit is contained in:
@@ -118,7 +118,7 @@ public:
|
||||
|
||||
ResizeEdgePanel(MainFrame* frame, Edge edge)
|
||||
: wxPanel(frame, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||
wxBORDER_NONE | wxTRANSPARENT_WINDOW)
|
||||
wxBORDER_NONE)
|
||||
, m_frame(frame)
|
||||
, m_edge(edge)
|
||||
{
|
||||
@@ -1802,8 +1802,8 @@ wxBoxSizer* MainFrame::create_side_tools()
|
||||
m_slice_select = eSlicePlate;
|
||||
m_print_select = ePrintPlate;
|
||||
|
||||
auto slice_panel = new wxPanel(this,wxID_ANY,wxDefaultPosition,wxDefaultSize,wxTRANSPARENT_WINDOW);
|
||||
auto print_panel = new wxPanel(this,wxID_ANY,wxDefaultPosition,wxDefaultSize,wxTRANSPARENT_WINDOW);
|
||||
auto slice_panel = new wxPanel(this,wxID_ANY,wxDefaultPosition,wxDefaultSize);
|
||||
auto print_panel = new wxPanel(this,wxID_ANY,wxDefaultPosition,wxDefaultSize);
|
||||
|
||||
m_slice_btn = new SideButton(slice_panel, _L("Slice plate"), "");
|
||||
m_slice_option_btn = new SideButton(slice_panel, "", "sidebutton_dropdown", 0, 14);
|
||||
|
||||
Reference in New Issue
Block a user