added wxDC::CopyAttributes() and use it in wxBufferedDC to ensure that wxAutoBufferedPaintDC font is correctly initialized from the window font, as it already happens with wxPaintDC that it mimics
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1122,6 +1122,19 @@ public:
|
||||
//@}
|
||||
|
||||
|
||||
/**
|
||||
Copy attributes from another DC.
|
||||
|
||||
The copied attributes currently are:
|
||||
- Font
|
||||
- Text foreground and background colours
|
||||
- Background brush
|
||||
- Layout direction
|
||||
|
||||
@param dc
|
||||
A valid (i.e. its IsOk() must return @true) source device context.
|
||||
*/
|
||||
void CopyAttributes(const wxDC& dc);
|
||||
|
||||
/**
|
||||
Returns the depth (number of bits/pixel) of this DC.
|
||||
|
Reference in New Issue
Block a user