~eliasnaur/gio

fd2d96adfc71147d5685af273d23ead22830e02e — Walter Werner SCHNEIDER 4 months ago 83d23ab
all: fix spelling errors

Signed-off-by: Walter Werner SCHNEIDER <contact@schnwalter.eu>
Signed-off-by: Elias Naur <mail@eliasnaur.com>
M cmd/gogio/android_test.go => cmd/gogio/android_test.go +1 -1
@@ 78,7 78,7 @@ func (d *AndroidTestDriver) Start(path string) {
		cmd := exec.CommandContext(ctx, d.adbPath,
			"logcat",
			"-s",       // suppress other logs
			"-T1",      // don't show prevoius log messages
			"-T1",      // don't show previous log messages
			appid+":*", // show all logs from our gio app ID
		)
		output, err := cmd.StdoutPipe()

M f32/affine.go => f32/affine.go +1 -1
@@ 12,7 12,7 @@ import (
type Affine2D struct {
	// in order to make the zero value of Affine2D represent the identity
	// transform we store it with the identity matrix subtracted, that is
	// if the actual transformaiton matrix is:
	// if the actual transformation matrix is:
	// [sx, hx, ox]
	// [hy, sy, oy]
	// [ 0,  0,  1]

M gpu/stroke.go => gpu/stroke.go +2 -2
@@ 500,14 500,14 @@ func strokePathRoundJoin(rhs, lhs *strokeQuads, hw float32, pivot, n0, n1 f32.Po
		c := pivot.Sub(lhs.pen())
		angle := -math.Acos(float64(cosPt(n0, n1)))
		lhs.arc(c, c, float32(angle))
		lhs.lineTo(lp) // Add a line to accomodate for rounding errors.
		lhs.lineTo(lp) // Add a line to accommodate for rounding errors.
		rhs.lineTo(rp)
	default:
		// Path bends to the left, ie. CCW.
		angle := math.Acos(float64(cosPt(n0, n1)))
		c := pivot.Sub(rhs.pen())
		rhs.arc(c, c, float32(angle))
		rhs.lineTo(rp) // Add a line to accomodate for rounding errors.
		rhs.lineTo(rp) // Add a line to accommodate for rounding errors.
		lhs.lineTo(lp)
	}
}

M internal/rendertest/bench_test.go => internal/rendertest/bench_test.go +1 -1
@@ 57,7 57,7 @@ func finishBenchmark(b *testing.B, w *headless.Window) {
}

func BenchmarkDrawUICached(b *testing.B) {
	// As BecnhmarkDraw but the same op.Ops every time that is not reset - this
	// As BenchmarkDraw but the same op.Ops every time that is not reset - this
	// should thus allow for maximal cache usage.
	gtx, w, th := setupBenchmark(b)
	drawCore(gtx, th)

M internal/rendertest/clip_test.go => internal/rendertest/clip_test.go +1 -1
@@ 59,7 59,7 @@ func TestPaintClippedBorder(t *testing.T) {
	})
}

func TestPaintClippedCirle(t *testing.T) {
func TestPaintClippedCircle(t *testing.T) {
	run(t, func(o *op.Ops) {
		r := float32(10)
		clip.RRect{Rect: f32.Rect(20, 20, 40, 40), SE: r, SW: r, NW: r, NE: r}.Add(o)

A internal/rendertest/refs/TestPaintClippedCircle.png => internal/rendertest/refs/TestPaintClippedCircle.png +0 -0
M internal/rendertest/render_test.go => internal/rendertest/render_test.go +1 -1
@@ 85,7 85,7 @@ func TestRepeatedPaintsZ(t *testing.T) {
}

func TestNoClipFromPaint(t *testing.T) {
	// ensure that a paint operation does not polute the state
	// ensure that a paint operation does not pollute the state
	// by leaving any clip paths in place.
	run(t, func(o *op.Ops) {
		a := f32.Affine2D{}.Rotate(f32.Pt(20, 20), math.Pi/4)

M layout/list.go => layout/list.go +1 -1
@@ 35,7 35,7 @@ type List struct {

	// Position is updated during Layout. To save the list scroll position,
	// just save Position after Layout finishes. To scroll the list
	// programatically, update Position (e.g. restore it from a saved value)
	// programmatically, update Position (e.g. restore it from a saved value)
	// before calling Layout.
	Position Position


M widget/enum.go => widget/enum.go +1 -1
@@ 27,7 27,7 @@ func index(vs []string, t string) int {
	return -1
}

// Changed reports whether Value has changed by user interactino since the last
// Changed reports whether Value has changed by user interaction since the last
// call to Changed.
func (e *Enum) Changed() bool {
	changed := e.changed