Under MSW and GTK the foreground and background colour for a blit from a monochrome bitmap
are the text for/background colours. Until now motif used the pen and background brush colours. Now Motif behaviour matches MSW and GTK one. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -90,6 +90,18 @@ public:
|
||||
void SetAutoSetting(bool flag) { m_autoSetting = flag; }
|
||||
|
||||
protected:
|
||||
// note that this function will call colour.SetPixel,
|
||||
// and will do one of curCol = colour, curCol = wxWHITE, curCol = wxBLACK
|
||||
// roundToWhite has an effect for monochrome display only
|
||||
// if roundToWhite == TRUE then the colour will be set to white unless
|
||||
// it is RGB 0x000000;if roundToWhite == FALSE the colour wull be set to
|
||||
// black unless it id RGB 0xffffff
|
||||
int CalculatePixel(wxColour& colour, wxColour& curCol,
|
||||
bool roundToWhite) const;
|
||||
// sets the foreground pixel taking into account the
|
||||
// currently selected logical operation
|
||||
void SetForegroundPixelWithLogicalFunction(int pixel);
|
||||
|
||||
virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
|
||||
int style = wxFLOOD_SURFACE);
|
||||
|
||||
|
Reference in New Issue
Block a user