Fix off by one error that resulted in the first line of data being
rendered offscreen. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42171 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -107,7 +107,7 @@ MemoryView::Draw(BRect rect)
|
|||||||
+ startByte);
|
+ startByte);
|
||||||
uint16* maxAddress = (uint16*)(fTargetBlock->BaseAddress()
|
uint16* maxAddress = (uint16*)(fTargetBlock->BaseAddress()
|
||||||
+ fTargetBlock->Size());
|
+ fTargetBlock->Size());
|
||||||
BPoint drawPoint(1.0, startLine * fLineHeight);
|
BPoint drawPoint(1.0, (startLine + 1) * fLineHeight);
|
||||||
int32 currentWordsPerLine = fNybblesPerLine / 4;
|
int32 currentWordsPerLine = fNybblesPerLine / 4;
|
||||||
|
|
||||||
for (int32 i = startLine; i <= endLine && currentAddress < maxAddress;
|
for (int32 i = startLine; i <= endLine && currentAddress < maxAddress;
|
||||||
|
|||||||
Reference in New Issue
Block a user