diff options
author | nyamatongwe <unknown> | 2000-03-08 13:56:46 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-03-08 13:56:46 +0000 |
commit | fdadfbf88b6ef8abfc4ee6d0d07fa76cd6f79cf1 (patch) | |
tree | 5cb35872b66ae9f021ecf762de4b03e416e2d2fe /src/ViewStyle.cxx | |
parent | 9367896cf64d36c501f545690f68faf544f6c09d (diff) | |
download | scintilla-mirror-fdadfbf88b6ef8abfc4ee6d0d07fa76cd6f79cf1.tar.gz |
Made work on GTK+/Linux.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 122db6a00..976593de3 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -51,7 +51,7 @@ ViewStyle::ViewStyle() { ViewStyle::ViewStyle(const ViewStyle &source) { Init(); - for (int sty=0;sty<=STYLE_MAX;sty++) { + for (unsigned int sty=0;sty<(sizeof(styles)/sizeof(styles[0]));sty++) { styles[sty] = source.styles[sty]; } for (int mrk=0;mrk<=MARKER_MAX;mrk++) { @@ -163,9 +163,7 @@ void ViewStyle::RefreshColourPalette(Palette &pal, bool want) { pal.WantFind(edgecolour, want); } -#include <mmsystem.h> void ViewStyle::Refresh(Surface &surface) { -DWORD dwStart = timeGetTime(); selbar.desired = Platform::Chrome(); selbarlight.desired = Platform::ChromeHighlight(); maxAscent = 1; @@ -194,8 +192,6 @@ DWORD dwStart = timeGetTime(); if (ms[margin].width > 0) maskInLine &= ~ms[margin].mask; } -DWORD dwEnd = timeGetTime(); -Platform::DebugPrintf("Refresh took %d\n", dwEnd - dwStart); } void ViewStyle::ResetDefaultStyle() { @@ -206,7 +202,7 @@ void ViewStyle::ResetDefaultStyle() { void ViewStyle::ClearStyles() { // Reset all styles to be like the default style - for (int i=0; i<=STYLE_MAX; i++) { + for (unsigned int i=0;i<(sizeof(styles)/sizeof(styles[0]));i++) { if (i != STYLE_DEFAULT) { styles[i].Clear( styles[STYLE_DEFAULT].fore.desired, |