Skip to content

Commit

Permalink
newpaint: fix random places where comments had tabs instead of spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Feb 8, 2025
1 parent 4f33cd1 commit 7021628
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 18 deletions.
2 changes: 1 addition & 1 deletion core/splits.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const (
TileFirstLong

// SecondLong has the first two elements split along the first line,
// and the third with a long span along the second main axis line,
// and the third with a long span along the second main axis line,
// with a split between the two lines. Visually, the splits form
// an inverted T shape for a horizontal main axis.
TileSecondLong
Expand Down
2 changes: 1 addition & 1 deletion gpu/gpudraw/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type imgrec struct {
// img is the image, or texture
img any

// index is where it is used in the Values list.
// index is where it is used in the Values list.
index int

// used flag indicates whether this image was used on last pass.
Expand Down
2 changes: 1 addition & 1 deletion gpu/shape/mesh.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type MeshData struct {
// typically centered around 0.
MeshBBox math32.Box3

// buffers that hold mesh data for the [Mesh.Set] method.
// buffers that hold mesh data for the [Mesh.Set] method.
Vertex, Normal, TexCoord, Colors math32.ArrayF32
Index math32.ArrayU32
}
Expand Down
2 changes: 1 addition & 1 deletion gpu/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type System interface {
// Each Var has Value(s) containing specific instance values.
Vars() *Vars

// Device is the logical device for this system, typically from
// Device is the logical device for this system, typically from
// the Renderer (Surface) or owned by a ComputeSystem.
Device() *Device

Expand Down
2 changes: 1 addition & 1 deletion gpu/var.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ type Var struct {
// This is 1 for Vertex buffer variables.
alignBytes int

// var group we are in
// var group we are in
VarGroup *VarGroup
}

Expand Down
5 changes: 1 addition & 4 deletions paint/renderers/rasterx/bezier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ func lerp(t, px, py, qx, qy float32) (x, y float32) {
}

// CubeLerpTo and adapted from golang.org/x/image/vector
//
// adds a cubic Bézier segment, from the pen via (bx, by) and (cx, cy)
//
// adds a cubic Bézier segment, from the pen via (bx, by) and (cx, cy)
// to (dx, dy), and moves the pen to (dx, dy).
//
// The coordinates are allowed to be out of the Rasterizer's bounds.
func CubeLerpTo(ax, ay, bx, by, cx, cy, dx, dy float32, LineTo func(ex, ey float32)) {
devsq := DevSquared(ax, ay, bx, by, dx, dy)
Expand Down
4 changes: 1 addition & 3 deletions parse/parser/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,7 @@ func (ps *State) FindNameScoped(nm string) (*syms.Symbol, bool) {
}

// FindNameTopScope searches only in top of current scope for something
//
// with the given name in symbols
//
// with the given name in symbols
// also looks in ps.Syms if not found in Scope stack.
func (ps *State) FindNameTopScope(nm string) (*syms.Symbol, bool) {
sy := ps.Scopes.Top()
Expand Down
4 changes: 2 additions & 2 deletions styles/paint.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ type Paint struct { //types:add
// Text has the text styling settings.
Text text.Style

// ClipPath is a clipping path for this item.
// ClipPath is a clipping path for this item.
ClipPath ppath.Path

// Mask is a rendered image of the mask for this item.
// Mask is a rendered image of the mask for this item.
Mask image.Image
}

Expand Down
2 changes: 1 addition & 1 deletion text/rich/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type Settings struct {
// "fantasy" will be added automatically as a final backup.
Fantasy FontName

// Math fonts are for displaying mathematical expressions, for example
// Math fonts are for displaying mathematical expressions, for example
// superscript and subscript, brackets that cross several lines, nesting
// expressions, and double-struck glyphs with distinct meanings.
// This can be a list of comma-separated names, tried in order.
Expand Down
6 changes: 3 additions & 3 deletions text/shaped/lines.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ type Run struct {
// Decoration are the decorations from the style to apply to this run.
Decoration rich.Decorations

// FillColor is the color to use for glyph fill (i.e., the standard "ink" color).
// FillColor is the color to use for glyph fill (i.e., the standard "ink" color).
// Will only be non-nil if set for this run; Otherwise use default.
FillColor image.Image

// StrokeColor is the color to use for glyph outline stroking, if non-nil.
// StrokeColor is the color to use for glyph outline stroking, if non-nil.
StrokeColor image.Image

// Background is the color to use for the background region, if non-nil.
// Background is the color to use for the background region, if non-nil.
Background image.Image
}

Expand Down

0 comments on commit 7021628

Please sign in to comment.