@@ -22,68 +22,68 @@ public override string GetToolTipText(HotSpot spot)
2222 return string . Join ( "\n " , Instructions . Select ( i => i . Instruction ) ) ;
2323 }
2424
25- protected Size Draw ( DrawContext view , int x , int y , string type , string name )
25+ protected Size Draw ( DrawContext context , int x , int y , string type , string name )
2626 {
27- Contract . Requires ( view != null ) ;
27+ Contract . Requires ( context != null ) ;
2828 Contract . Requires ( type != null ) ;
2929 Contract . Requires ( name != null ) ;
3030
3131 if ( IsHidden && ! IsWrapped )
3232 {
33- return DrawHidden ( view , x , y ) ;
33+ return DrawHidden ( context , x , y ) ;
3434 }
3535
3636 var origX = x ;
3737
38- AddSelection ( view , x , y , view . Font . Height ) ;
38+ AddSelection ( context , x , y , context . Font . Height ) ;
3939
40- x = AddIconPadding ( view , x ) ;
40+ x = AddIconPadding ( context , x ) ;
4141
42- x = AddIcon ( view , x , y , view . IconProvider . Function , HotSpot . NoneId , HotSpotType . None ) ;
42+ x = AddIcon ( context , x , y , context . IconProvider . Function , HotSpot . NoneId , HotSpotType . None ) ;
4343
4444 var tx = x ;
4545
46- x = AddAddressOffset ( view , x , y ) ;
46+ x = AddAddressOffset ( context , x , y ) ;
4747
48- x = AddText ( view , x , y , view . Settings . TypeColor , HotSpot . NoneId , type ) + view . Font . Width ;
48+ x = AddText ( context , x , y , context . Settings . TypeColor , HotSpot . NoneId , type ) + context . Font . Width ;
4949 if ( ! IsWrapped )
5050 {
51- x = AddText ( view , x , y , view . Settings . NameColor , HotSpot . NameId , name ) + view . Font . Width ;
51+ x = AddText ( context , x , y , context . Settings . NameColor , HotSpot . NameId , name ) + context . Font . Width ;
5252 }
5353
54- x = AddOpenCloseIcon ( view , x , y ) + view . Font . Width ;
54+ x = AddOpenCloseIcon ( context , x , y ) + context . Font . Width ;
5555
56- x = AddComment ( view , x , y ) ;
56+ x = AddComment ( context , x , y ) ;
5757
58- if ( view . Settings . ShowCommentSymbol )
58+ if ( context . Settings . ShowCommentSymbol )
5959 {
60- var value = view . Memory . ReadIntPtr ( Offset ) ;
60+ var value = context . Memory . ReadIntPtr ( Offset ) ;
6161
62- var module = view . Process . GetModuleToPointer ( value ) ;
62+ var module = context . Process . GetModuleToPointer ( value ) ;
6363 if ( module != null )
6464 {
65- var symbols = view . Process . Symbols . GetSymbolsForModule ( module ) ;
65+ var symbols = context . Process . Symbols . GetSymbolsForModule ( module ) ;
6666 var symbol = symbols ? . GetSymbolString ( value , module ) ;
6767 if ( ! string . IsNullOrEmpty ( symbol ) )
6868 {
69- x = AddText ( view , x , y , view . Settings . OffsetColor , HotSpot . ReadOnlyId , symbol ) ;
69+ x = AddText ( context , x , y , context . Settings . OffsetColor , HotSpot . ReadOnlyId , symbol ) ;
7070 }
7171 }
7272 }
7373
74- DrawInvalidMemoryIndicatorIcon ( view , y ) ;
75- AddContextDropDownIcon ( view , y ) ;
76- AddDeleteIcon ( view , y ) ;
74+ DrawInvalidMemoryIndicatorIcon ( context , y ) ;
75+ AddContextDropDownIcon ( context , y ) ;
76+ AddDeleteIcon ( context , y ) ;
7777
78- var size = new Size ( x - origX , view . Font . Height ) ;
78+ var size = new Size ( x - origX , context . Font . Height ) ;
7979
80- if ( LevelsOpen [ view . Level ] )
80+ if ( LevelsOpen [ context . Level ] )
8181 {
82- var ptr = view . Memory . ReadIntPtr ( Offset ) ;
82+ var ptr = context . Memory . ReadIntPtr ( Offset ) ;
8383
84- DisassembleRemoteCode ( view . Process , ptr ) ;
84+ DisassembleRemoteCode ( context . Process , ptr ) ;
8585
86- var instructionSize = DrawInstructions ( view , tx , y ) ;
86+ var instructionSize = DrawInstructions ( context , tx , y ) ;
8787
8888 size . Width = Math . Max ( size . Width , instructionSize . Width + tx - origX ) ;
8989 size . Height += instructionSize . Height ;
@@ -92,17 +92,17 @@ protected Size Draw(DrawContext view, int x, int y, string type, string name)
9292 return size ;
9393 }
9494
95- public override int CalculateDrawnHeight ( DrawContext view )
95+ public override int CalculateDrawnHeight ( DrawContext context )
9696 {
9797 if ( IsHidden )
9898 {
9999 return HiddenHeight ;
100100 }
101101
102- var height = view . Font . Height ;
103- if ( LevelsOpen [ view . Level ] )
102+ var height = context . Font . Height ;
103+ if ( LevelsOpen [ context . Level ] )
104104 {
105- height += Instructions . Count * view . Font . Height ;
105+ height += Instructions . Count * context . Font . Height ;
106106 }
107107 return height ;
108108 }
0 commit comments