diff options
| author | nyamatongwe <unknown> | 2000-03-13 06:33:34 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2000-03-13 06:33:34 +0000 | 
| commit | affaa0735a05a789d95baed82c903d9b571a2c00 (patch) | |
| tree | 971c5b8e64f8a2130a678bffe82ff526915967e0 /src/ViewStyle.cxx | |
| parent | 99c218655d2fbc87781b9695b22d790c5e6251eb (diff) | |
| download | scintilla-mirror-affaa0735a05a789d95baed82c903d9b571a2c00.tar.gz | |
Fixed printing problems including putting line numbers in correct position
and flushing state when switching surfaces in case surfaces are encapsulating
a shared underlying graphics context.
Diffstat (limited to 'src/ViewStyle.cxx')
| -rw-r--r-- | src/ViewStyle.cxx | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 976593de3..d5c36981b 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -53,6 +53,8 @@ ViewStyle::ViewStyle(const ViewStyle &source) {  	Init();  	for (unsigned int sty=0;sty<(sizeof(styles)/sizeof(styles[0]));sty++) {  		styles[sty] = source.styles[sty]; +		// Can't just copy fontname as its lifetime is relative to its owning ViewStyle +		styles[sty].fontName = fontNames.Save(source.styles[sty].fontName);  	}  	for (int mrk=0;mrk<=MARKER_MAX;mrk++) {  		markers[mrk] = source.markers[mrk]; @@ -166,9 +168,9 @@ void ViewStyle::RefreshColourPalette(Palette &pal, bool want) {  void ViewStyle::Refresh(Surface &surface) {  	selbar.desired = Platform::Chrome();  	selbarlight.desired = Platform::ChromeHighlight(); -	maxAscent = 1; -	maxDescent = 1;  	styles[STYLE_DEFAULT].Realise(surface, zoomLevel); +	maxAscent = styles[STYLE_DEFAULT].ascent; +	maxDescent = styles[STYLE_DEFAULT].descent;  	for (unsigned int i=0;i<(sizeof(styles)/sizeof(styles[0]));i++) {  		if (i != STYLE_DEFAULT) {  			styles[i].Realise(surface, zoomLevel, &styles[STYLE_DEFAULT]); | 
