Finally nailed a graphics bug I was looking for for quite some time. The only one I'm still seeing is with text. Sometimes the last line of text is not drawn.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12680 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -493,7 +493,7 @@ DisplayDriverPainter::FillRect(const BRect& r, const RGBColor& color)
|
||||
max_c(r.left, r.right),
|
||||
max_c(r.top, r.bottom));
|
||||
vr = fPainter->ClipRect(vr);
|
||||
|
||||
if (vr.IsValid()) {
|
||||
fGraphicsCard->HideSoftwareCursor(vr);
|
||||
|
||||
// try hardware optimized version first
|
||||
@@ -508,6 +508,7 @@ DisplayDriverPainter::FillRect(const BRect& r, const RGBColor& color)
|
||||
}
|
||||
|
||||
fGraphicsCard->ShowSoftwareCursor();
|
||||
}
|
||||
|
||||
Unlock();
|
||||
}
|
||||
@@ -523,7 +524,7 @@ DisplayDriverPainter::FillRect(const BRect &r, const DrawData *d)
|
||||
max_c(r.left, r.right),
|
||||
max_c(r.top, r.bottom));
|
||||
vr = fPainter->ClipRect(vr);
|
||||
|
||||
if (vr.IsValid()) {
|
||||
fGraphicsCard->HideSoftwareCursor(vr);
|
||||
|
||||
bool doInSoftware = true;
|
||||
@@ -553,6 +554,7 @@ DisplayDriverPainter::FillRect(const BRect &r, const DrawData *d)
|
||||
}
|
||||
|
||||
fGraphicsCard->ShowSoftwareCursor();
|
||||
}
|
||||
|
||||
Unlock();
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ roundf(float v)
|
||||
return (int)floorf(v - 0.5);
|
||||
}
|
||||
|
||||
#define CHECK_CLIPPING if (!fValidClipping) return BRect(0,0, -1, -1);
|
||||
#define CHECK_CLIPPING if (!fValidClipping) return BRect(0, 0, -1, -1);
|
||||
|
||||
// constructor
|
||||
Painter::Painter()
|
||||
@@ -634,8 +634,6 @@ void
|
||||
Painter::FillRect(const BRect& r, const rgb_color& c) const
|
||||
{
|
||||
if (fBuffer && fValidClipping) {
|
||||
//printf("Painter::FillRect(BRect(%.1f, %.1f, %.1f, %.1f))\n", r.left, r.top, r.right, r.bottom);
|
||||
//printf(" rgb_color(%d, %d, %d, %d)\n", c.red, c.green, c.blue, c.alpha);
|
||||
uint8* dst = fBuffer->row(0);
|
||||
uint32 bpr = fBuffer->stride();
|
||||
int32 left = (int32)r.left;
|
||||
|
||||
Reference in New Issue
Block a user