fix background repainting under wxMSW (not sure this is the best way to do it - but it works)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -184,6 +184,8 @@ public:
 | 
			
		||||
        SetClientSize(bitmap.GetWidth(), bitmap.GetHeight());
 | 
			
		||||
 | 
			
		||||
        UpdateStatusBar();
 | 
			
		||||
        
 | 
			
		||||
        SetBackgroundColour(*wxWHITE);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void OnEraseBackground(wxEraseEvent& WXUNUSED(event))
 | 
			
		||||
@@ -194,6 +196,9 @@ public:
 | 
			
		||||
    void OnPaint(wxPaintEvent& WXUNUSED(event))
 | 
			
		||||
    {
 | 
			
		||||
        wxPaintDC dc(this);
 | 
			
		||||
        
 | 
			
		||||
        ClearBackground();
 | 
			
		||||
        
 | 
			
		||||
        const wxSize size = GetClientSize();
 | 
			
		||||
        dc.DrawBitmap(m_bitmap,
 | 
			
		||||
                      (size.x - m_bitmap.GetWidth())/2,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user