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:
@@ -209,8 +209,10 @@ MemoryView::Draw(BRect rect)
|
|||||||
PushState();
|
PushState();
|
||||||
SetHighColor(B_TRANSPARENT_COLOR);
|
SetHighColor(B_TRANSPARENT_COLOR);
|
||||||
SetDrawingMode(B_OP_INVERT);
|
SetDrawingMode(B_OP_INVERT);
|
||||||
float startX = drawPoint.x + fCharWidth * (targetAddress
|
uint32 blockAddress = uint32(targetAddress - currentAddress);
|
||||||
- currentAddress);
|
if (fHexMode != HexModeNone)
|
||||||
|
blockAddress &= ~(blockByteSize - 1);
|
||||||
|
float startX = drawPoint.x + fCharWidth * blockAddress;
|
||||||
float endX = startX;
|
float endX = startX;
|
||||||
if (fHexMode != HexModeNone)
|
if (fHexMode != HexModeNone)
|
||||||
endX += fCharWidth * ((hexBlockSize - 1) / 2);
|
endX += fCharWidth * ((hexBlockSize - 1) / 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user