forked from joejulian/gio
all: [API] change clip.RRect and UniformRRect to take integer coordinates
Like the change to op.Offset before this, clip.RRect and UniformRRect is usually used with integer coordinates. Change to integer coordinates to eliminate many useless conversions to float32. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -741,7 +741,7 @@ func TestEllipse(t *testing.T) {
|
||||
var ops op.Ops
|
||||
|
||||
h := new(int)
|
||||
cl := clip.Ellipse(f32.Rect(0, 0, 100, 100)).Push(&ops)
|
||||
cl := clip.Ellipse(image.Rect(0, 0, 100, 100)).Push(&ops)
|
||||
pointer.InputOp{Tag: h, Types: pointer.Press}.Add(&ops)
|
||||
cl.Pop()
|
||||
var r Router
|
||||
|
||||
Reference in New Issue
Block a user