forked from joejulian/gio
all: fix spelling errors
Signed-off-by: Walter Werner SCHNEIDER <contact@schnwalter.eu> Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
committed by
Elias Naur
parent
83d23ab507
commit
fd2d96adfc
@@ -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()
|
||||
|
||||
+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]
|
||||
|
||||
+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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 571 B |
@@ -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)
|
||||
|
||||
+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
|
||||
|
||||
|
||||
+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
|
||||
|
||||
Reference in New Issue
Block a user