mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
layout: [API] remove FRect
We're about to unexport f32.Rectangle, this change removes the only public API for it. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -855,7 +855,7 @@ func (g *compute) blitLayers(d driver.LoadDesc, fbo driver.Texture, viewport ima
|
||||
for _, l := range layers {
|
||||
placef := layout.FPt(l.alloc.rect.Min)
|
||||
sizef := layout.FPt(l.rect.Size())
|
||||
r := layout.FRect(l.rect)
|
||||
r := frect(l.rect)
|
||||
quad := [4]layerVertex{
|
||||
{posX: float32(r.Min.X), posY: float32(r.Min.Y), u: placef.X, v: placef.Y},
|
||||
{posX: float32(r.Max.X), posY: float32(r.Min.Y), u: placef.X + sizef.X, v: placef.Y},
|
||||
@@ -1782,7 +1782,7 @@ func (c *collector) collect(root *op.Ops, viewport image.Point, texOps *[]textur
|
||||
case ops.TypeClip:
|
||||
var op ops.ClipOp
|
||||
op.Decode(encOp.Data)
|
||||
bounds := layout.FRect(op.Bounds)
|
||||
bounds := frect(op.Bounds)
|
||||
c.addClip(&state, fview, bounds, pathData.data, pathData.key, pathData.hash, strWidth, true)
|
||||
pathData.data = nil
|
||||
strWidth = 0
|
||||
|
||||
Reference in New Issue
Block a user