@@ -1025,7 +1025,7 @@ pub fn Entity(comptime T: type) type {
10251025 // Buttons do not use the background.image or backgroud.image_name
10261026 // field, so don't draw background image for buttons.
10271027 if (entity .type != .button ) {
1028- var dest = entity .rect .move (& scroll_offset );
1028+ var dest = entity .rect .move (scroll_offset );
10291029 if (entity .flip .x ) {
10301030 dest .x += dest .width ;
10311031 dest .width = 0 - dest .width ;
@@ -1088,7 +1088,7 @@ pub fn Entity(comptime T: type) type {
10881088 display .renderer ,
10891089 2 ,
10901090 colour ,
1091- entity .rect .move (& scroll_offset ),
1091+ entity .rect .move (scroll_offset ),
10921092 .{},
10931093 );
10941094 if (entity .type == .panel and (entity .type .panel .scrollable .scroll .x or entity .type .panel .scrollable .scroll .y )) {
@@ -1100,7 +1100,7 @@ pub fn Entity(comptime T: type) type {
11001100 .{},
11011101 );
11021102 } else if (entity .type == .label ) {
1103- var pad_line = entity .rect .move (& scroll_offset );
1103+ var pad_line = entity .rect .move (scroll_offset );
11041104 pad_line .x += entity .pad .left ;
11051105 pad_line .y += entity .pad .top ;
11061106 pad_line .width -= (entity .pad .left + entity .pad .right );
@@ -1122,7 +1122,7 @@ pub fn Entity(comptime T: type) type {
11221122 display .renderer ,
11231123 entity .border_width ,
11241124 entity .border_colour ,
1125- entity .rect .move (& scroll_offset ),
1125+ entity .rect .move (scroll_offset ),
11261126 .{},
11271127 );
11281128 }
@@ -1134,7 +1134,7 @@ pub fn Entity(comptime T: type) type {
11341134 draw_selection_marker (
11351135 display ,
11361136 display .theme .cursor_colour ,
1137- entity .rect .move (& scroll_offset ),
1137+ entity .rect .move (scroll_offset ),
11381138 );
11391139 }
11401140 }
@@ -2132,7 +2132,7 @@ pub const Rect = extern struct {
21322132 height : f32 = 0 ,
21332133
21342134 /// Add the x and y value from the `other` vector to this vector.
2135- pub fn move (self : * const Rect , offset : * const Vector ) Rect {
2135+ pub fn move (self : * const Rect , offset : Vector ) Rect {
21362136 return .{
21372137 .x = self .x + offset .x ,
21382138 .y = self .y + offset .y ,
0 commit comments