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:
parent
90624579a7
commit
436dbf26ae
@ -107,7 +107,7 @@ MemoryView::Draw(BRect rect)
|
||||
+ startByte);
|
||||
uint16* maxAddress = (uint16*)(fTargetBlock->BaseAddress()
|
||||
+ fTargetBlock->Size());
|
||||
BPoint drawPoint(1.0, startLine * fLineHeight);
|
||||
BPoint drawPoint(1.0, (startLine + 1) * fLineHeight);
|
||||
int32 currentWordsPerLine = fNybblesPerLine / 4;
|
||||
|
||||
for (int32 i = startLine; i <= endLine && currentAddress < maxAddress;
|
||||
|
Loading…
Reference in New Issue
Block a user