correct glhf.Bounds in Canvas

This commit is contained in:
faiface 2017-03-07 01:06:37 +01:00
parent 6b643e588a
commit 7feecc2e35
1 changed files with 5 additions and 1 deletions

View File

@ -209,7 +209,11 @@ func (ct *canvasTriangles) draw(cp *canvasPicture) {
col := ct.c.col
mainthread.CallNonBlock(func() {
glhf.Bounds(0, 0, ct.c.f.Width(), ct.c.f.Height())
bounds := ct.c.bounds
bounds.Pos -= ct.c.borders.Pos
bx, by, bw, bh := discreteBounds(bounds)
glhf.Bounds(bx, by, bw, bh)
ct.c.f.Begin()
ct.c.s.Begin()