Got rid of "cnt" debugging stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15110 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
343e4ff465
commit
46b7964e5c
@ -99,9 +99,7 @@ WinBorder::WinBorder(const BRect &frame,
|
||||
fMinWidth(1.0),
|
||||
fMaxWidth(32768.0),
|
||||
fMinHeight(1.0),
|
||||
fMaxHeight(32768.0),
|
||||
|
||||
cnt(0) // for debugging
|
||||
fMaxHeight(32768.0)
|
||||
{
|
||||
// unlike BViews, windows start off as hidden
|
||||
fHidden = true;
|
||||
@ -306,10 +304,6 @@ WinBorder::UpdateStart()
|
||||
// During updates we only want to draw what's in the update region
|
||||
fInUpdate = true;
|
||||
fRequestSent = false;
|
||||
|
||||
cnt--;
|
||||
if (cnt != 0)
|
||||
CRITICAL("Layer::UpdateStart(): wb->cnt != 0 -> Not Allowed!");
|
||||
}
|
||||
|
||||
|
||||
@ -812,9 +806,6 @@ WinBorder::RequestClientRedraw(const BRegion &invalid)
|
||||
fCumulativeRegion.Include(&updateReg);
|
||||
if (fUpdateRequestsEnabled && !InUpdate() && !fRequestSent) {
|
||||
fInUpdateRegion = fCumulativeRegion;
|
||||
cnt++;
|
||||
if (cnt != 1)
|
||||
CRITICAL("WinBorder::RequestClientRedraw(): cnt != 1 -> Not Allowed!");
|
||||
fRequestSent = true; // this is here to avoid a possible de-synchronization
|
||||
|
||||
BMessage msg;
|
||||
|
@ -166,8 +166,6 @@ class WinBorder : public Layer {
|
||||
float fMaxWidth;
|
||||
float fMinHeight;
|
||||
float fMaxHeight;
|
||||
|
||||
int cnt; // for debugging
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user