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:
Mattia Barbon
2002-07-29 20:31:22 +00:00
parent 5ccc0a5698
commit 395539f90f
2 changed files with 134 additions and 136 deletions

View File

@@ -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);