Bless.Gui.Areas.Plugins.GroupedArea.GetDisplayInfoByOffset C# (CSharp) Method

GetDisplayInfoByOffset() public method

public GetDisplayInfoByOffset ( long off, int &orow, int &obyte, int &ox, int &oy ) : void
off long
orow int
obyte int
ox int
oy int
return void
	public override void GetDisplayInfoByOffset(long off, out int orow, out int obyte, out int ox, out int oy)
	{
		orow = (int)((off - areaGroup.Offset) / bpr);
		obyte = (int)((off - areaGroup.Offset) % bpr);

		oy = orow * drawer.Height;

		int group = obyte / grouping;
		int groupOffset = obyte % grouping;
		ox = group * (grouping * dpb * drawer.Width + drawer.Width) + dpb * drawer.Width * groupOffset;
	}