Oops, r345496 got the pointer args backwards for bcopy() in VGLClear for
segmented modes. Also fix some style bugs in the 2 changed lines. libvgl uses a very non-KNF style with 2-column indentation with no tabs except for regressions.
This commit is contained in:
parent
b55bfda75c
commit
fa68d9b94e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345637
@ -556,8 +556,8 @@ VGLClear(VGLBitmap *object, u_long color)
|
|||||||
VGLSetSegment(offset);
|
VGLSetSegment(offset);
|
||||||
len = min(total - offset, VGLAdpInfo.va_window_size);
|
len = min(total - offset, VGLAdpInfo.va_window_size);
|
||||||
for (i = 0; i < len; i += object->PixelBytes)
|
for (i = 0; i < len; i += object->PixelBytes)
|
||||||
bcopy(object->Bitmap + (offset + i) % VGLAdpInfo.va_window_size, b,
|
bcopy(b, object->Bitmap + (offset + i) % VGLAdpInfo.va_window_size,
|
||||||
object->PixelBytes);
|
object->PixelBytes);
|
||||||
offset += len;
|
offset += len;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user