Align the text section's highlight correctly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42214 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0215c110a5
commit
a5d0b3f501
@ -209,8 +209,10 @@ MemoryView::Draw(BRect rect)
|
||||
PushState();
|
||||
SetHighColor(B_TRANSPARENT_COLOR);
|
||||
SetDrawingMode(B_OP_INVERT);
|
||||
float startX = drawPoint.x + fCharWidth * (targetAddress
|
||||
- currentAddress);
|
||||
uint32 blockAddress = uint32(targetAddress - currentAddress);
|
||||
if (fHexMode != HexModeNone)
|
||||
blockAddress &= ~(blockByteSize - 1);
|
||||
float startX = drawPoint.x + fCharWidth * blockAddress;
|
||||
float endX = startX;
|
||||
if (fHexMode != HexModeNone)
|
||||
endX += fCharWidth * ((hexBlockSize - 1) / 2);
|
||||
|
Loading…
Reference in New Issue
Block a user