Fix fringe bitmap display on haiku again
* src/haiku_draw_support.cc (BView_DrawBitmapWithEraseOp): Fix off-by-one errors.
This commit is contained in:
parent
7eb86a1788
commit
a89bc0fe9c
1 changed files with 2 additions and 2 deletions
|
@ -310,9 +310,9 @@ BView_DrawBitmapWithEraseOp (void *view, void *bitmap, int x,
|
|||
if (bm->ColorSpace () == B_GRAY1)
|
||||
{
|
||||
rgb_color low_color = vw->LowColor ();
|
||||
for (int y = 0; y <= bc.Bounds ().Height () + 1; ++y)
|
||||
for (int y = 0; y <= bc.Bounds ().Height (); ++y)
|
||||
{
|
||||
for (int x = 0; x <= bc.Bounds ().Width () + 1; ++x)
|
||||
for (int x = 0; x <= bc.Bounds ().Width (); ++x)
|
||||
{
|
||||
if (bits[y * (stride / 4) + x] == 0xFF000000)
|
||||
bits[y * (stride / 4) + x] = RGB_COLOR_UINT32 (low_color);
|
||||
|
|
Loading…
Add table
Reference in a new issue