hexeditor: fix highlighting positioninigngi

This commit is contained in:
goyuken 2012-12-14 02:02:59 +00:00
parent e31f4380e2
commit 8cc820c273
1 changed files with 6 additions and 6 deletions

View File

@ -1202,11 +1202,11 @@ namespace BizHawk.MultiClient
{
default:
case 1:
return new Point(((address % 16) * (fontWidth * 3)) + 57, (((address / 16) - vScrollBar1.Value) * fontHeight) + 30);
return new Point(((address % 16) * (fontWidth * 3)) + 67, (((address / 16) - vScrollBar1.Value) * fontHeight) + 30);
case 2:
return new Point((((address % 16) / DataSize) * (fontWidth * 5)) + 57, (((address / 16) - vScrollBar1.Value) * fontHeight) + 30);
return new Point((((address % 16) / DataSize) * (fontWidth * 5)) + 67, (((address / 16) - vScrollBar1.Value) * fontHeight) + 30);
case 4:
return new Point((((address % 16) / DataSize) * (fontWidth * 9)) + 57, (((address / 16) - vScrollBar1.Value) * fontHeight) + 30);
return new Point((((address % 16) / DataSize) * (fontWidth * 9)) + 67, (((address / 16) - vScrollBar1.Value) * fontHeight) + 30);
}
}
@ -1217,13 +1217,13 @@ namespace BizHawk.MultiClient
{
default:
case 1:
start = (16 * (fontWidth * 3)) + 57;
start = (16 * (fontWidth * 3)) + 67;
break;
case 2:
start = ((16 / DataSize) * (fontWidth * 5)) + 57;
start = ((16 / DataSize) * (fontWidth * 5)) + 67;
break;
case 4:
start = ((16 / DataSize) * (fontWidth * 9)) + 57;
start = ((16 / DataSize) * (fontWidth * 9)) + 67;
break;
}
start += (fontWidth * 4);