mirror of https://github.com/BOINC/boinc.git
Merge pull request #5531 from AenBleidd/vko_fix_blank_windows_on_simple_gui
[Linux] Fix blank windows in Simple GUI.
This commit is contained in:
commit
b90373e1c6
|
@ -187,7 +187,11 @@ void CPanelMessages::OnEraseBackground(wxEraseEvent& event){
|
|||
wxSize sz = GetClientSize();
|
||||
|
||||
// Create a buffered device context to reduce flicker
|
||||
#ifndef __WXGTK__
|
||||
wxBufferedDC dc(event.GetDC(), sz, wxBUFFER_CLIENT_AREA);
|
||||
#else
|
||||
wxDC &dc = *event.GetDC();
|
||||
#endif
|
||||
|
||||
// bitmap dimensions
|
||||
w = bmp.GetWidth();
|
||||
|
|
|
@ -534,9 +534,13 @@ void CPanelPreferences::OnEraseBackground( wxEraseEvent& event ) {
|
|||
if (!m_backgroundBitmap) {
|
||||
MakeBackgroundBitmap();
|
||||
}
|
||||
// Create a buffered device context to reduce flicker
|
||||
wxSize sz = GetClientSize();
|
||||
// Create a buffered device context to reduce flicker
|
||||
#ifndef __WXGTK__
|
||||
wxBufferedDC dc(event.GetDC(), sz, wxBUFFER_CLIENT_AREA);
|
||||
#else
|
||||
wxDC &dc = *event.GetDC();
|
||||
#endif
|
||||
|
||||
#if TEST_BACKGROUND_WITH_MAGENTA_FILL
|
||||
// Fill the dialog with a magenta color so people can detect when something
|
||||
|
|
Loading…
Reference in New Issue