diff options
| author | nyamatongwe <unknown> | 2001-10-28 01:28:28 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-10-28 01:28:28 +0000 | 
| commit | 19b8b95e52c0c98566819492a6a5bb829314cec9 (patch) | |
| tree | 493a0791cb7757d3e8397e242eef5c4f764a5aee /src/ViewStyle.cxx | |
| parent | 83ec763aff39f7dd7dbd80954335e1841d061601 (diff) | |
| download | scintilla-mirror-19b8b95e52c0c98566819492a6a5bb829314cec9.tar.gz | |
Removed platform-specific headers from Platform.h and thus stopped
visibility of these headers to most code.
Diffstat (limited to 'src/ViewStyle.cxx')
| -rw-r--r-- | src/ViewStyle.cxx | 23 | 
1 files changed, 12 insertions, 11 deletions
| diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 4db7e2508..40615da65 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -103,11 +103,11 @@ void ViewStyle::Init() {  	ResetDefaultStyle();  	indicators[0].style = INDIC_SQUIGGLE; -	indicators[0].fore = Colour(0, 0x7f, 0); +	indicators[0].fore = ColourDesired(0, 0x7f, 0);  	indicators[1].style = INDIC_TT; -	indicators[1].fore = Colour(0, 0, 0xff); +	indicators[1].fore = ColourDesired(0, 0, 0xff);  	indicators[2].style = INDIC_PLAIN; -	indicators[2].fore = Colour(0xff, 0, 0); +	indicators[2].fore = ColourDesired(0xff, 0, 0);  	lineHeight = 1;  	maxAscent = 1; @@ -116,18 +116,18 @@ void ViewStyle::Init() {  	spaceWidth = 8;  	selforeset = false; -	selforeground.desired = Colour(0xff, 0, 0); +	selforeground.desired = ColourDesired(0xff, 0, 0);  	selbackset = true; -	selbackground.desired = Colour(0xc0, 0xc0, 0xc0); -	selbackground2.desired = Colour(0xb0, 0xb0, 0xb0); +	selbackground.desired = ColourDesired(0xc0, 0xc0, 0xc0); +	selbackground2.desired = ColourDesired(0xb0, 0xb0, 0xb0);  	selbar.desired = Platform::Chrome();  	selbarlight.desired = Platform::ChromeHighlight(); -	styles[STYLE_LINENUMBER].fore.desired = Colour(0, 0, 0); +	styles[STYLE_LINENUMBER].fore.desired = ColourDesired(0, 0, 0);  	styles[STYLE_LINENUMBER].back.desired = Platform::Chrome(); -	caretcolour.desired = Colour(0, 0, 0); +	caretcolour.desired = ColourDesired(0, 0, 0);  	showCaretLineBackground = false; -	caretLineBackground.desired = Colour(0xff, 0xff, 0); -	edgecolour.desired = Colour(0xc0, 0xc0, 0xc0); +	caretLineBackground.desired = ColourDesired(0xff, 0xff, 0); +	edgecolour.desired = ColourDesired(0xc0, 0xc0, 0xc0);  	edgeState = EDGE_NONE;  	caretWidth = 1; @@ -215,7 +215,8 @@ void ViewStyle::Refresh(Surface &surface) {  }  void ViewStyle::ResetDefaultStyle() { -	styles[STYLE_DEFAULT].Clear(Colour(0,0,0), Colour(0xff,0xff,0xff), +	styles[STYLE_DEFAULT].Clear(ColourDesired(0,0,0),  +		ColourDesired(0xff,0xff,0xff),  	        Platform::DefaultFontSize(), fontNames.Save(Platform::DefaultFont()),  		SC_CHARSET_DEFAULT,  		false, false, false, false, Style::caseMixed, true); | 
