make Window::{Bold,Reverse,AltCharset} protected

they should be called only within member funcions, because they
ignore stacked values, that are set by Window::operator<<(Format)
This commit is contained in:
Andrzej Rybczak
2009-07-13 16:16:12 +02:00
parent 26326de2c8
commit caec71134e
2 changed files with 5 additions and 4 deletions

View File

@@ -133,7 +133,7 @@ void Clock::Update()
next[k] = 0;
for (int s = 1; s >= 0; --s)
{
w->Reverse(s);
*w << (s ? fmtReverse : fmtReverseEnd);
for (int i = 0; i < 6; ++i)
{
long a = (newer[i] ^ older[i]) & (s ? newer : older)[i];

View File

@@ -119,9 +119,6 @@ namespace NCurses
void DeleteHistory();
void Hide(char = 32) const;
void Bold(bool) const;
void Reverse(bool) const;
void AltCharset(bool) const;
void Display();
virtual void Refresh();
@@ -164,6 +161,10 @@ namespace NCurses
class BadSize { };
void Bold(bool) const;
void Reverse(bool) const;
void AltCharset(bool) const;
void ShowBorder() const;
void AdjustDimensions(size_t &, size_t &);