Fixed example 02_drop.

This commit is contained in:
Sander Schobers 2021-06-04 20:14:56 +02:00
parent 6839870055
commit b63fc999e1

View File

@ -69,7 +69,6 @@ func newCircle() ui.ImageSource {
func (d *dropFiles) Init(ctx ui.Context) error { func (d *dropFiles) Init(ctx ui.Context) error {
d.ctx = ctx d.ctx = ctx
drop.Register(d)
_, err := ctx.Fonts().CreateFontPath("default", "../resources/font/OpenSans-Regular.ttf", 14) _, err := ctx.Fonts().CreateFontPath("default", "../resources/font/OpenSans-Regular.ttf", 14)
if err != nil { if err != nil {