Skip to content

Commit 3b18924

Browse files
committed
Removed length parameter.
1 parent 3b080f6 commit 3b18924

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

Nodes/BaseTextPtrNode.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ public abstract class BaseTextPtrNode : BaseNode
1313
/// <param name="view">The view information.</param>
1414
/// <param name="x">The x coordinate.</param>
1515
/// <param name="y">The y coordinate.</param>
16+
/// <param name="type">The name of the type.</param>
17+
/// <param name="text">The text.</param>
1618
/// <returns>The height the node occupies.</returns>
17-
public int DrawText(ViewInfo view, int x, int y, string type, int length, string text)
19+
public int DrawText(ViewInfo view, int x, int y, string type, string text)
1820
{
1921
Contract.Requires(view != null);
2022
Contract.Requires(type != null);

Nodes/UTF16TextPtrNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public override int Draw(ViewInfo view, int x, int y)
1616
var ptr = view.Memory.ReadObject<IntPtr>(Offset);
1717
var str = view.Memory.Process.ReadRemoteString(Encoding.Unicode, ptr, 128);
1818

19-
return DrawText(view, x, y, "Text16Ptr", MemorySize, str);
19+
return DrawText(view, x, y, "Text16Ptr", str);
2020
}
2121
}
2222
}

Nodes/UTF32TextPtrNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public override int Draw(ViewInfo view, int x, int y)
1616
var ptr = view.Memory.ReadObject<IntPtr>(Offset);
1717
var str = view.Memory.Process.ReadRemoteString(Encoding.UTF32, ptr, 256);
1818

19-
return DrawText(view, x, y, "Text32Ptr", MemorySize, str);
19+
return DrawText(view, x, y, "Text32Ptr", str);
2020
}
2121
}
2222
}

Nodes/UTF8TextPtrNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public override int Draw(ViewInfo view, int x, int y)
1616
var ptr = view.Memory.ReadObject<IntPtr>(Offset);
1717
var str = view.Memory.Process.ReadRemoteString(Encoding.UTF8, ptr, 64);
1818

19-
return DrawText(view, x, y, "Text8Ptr", MemorySize, str);
19+
return DrawText(view, x, y, "Text8Ptr", str);
2020
}
2121
}
2222
}

0 commit comments

Comments
 (0)