Fixed example 02_drop.
This commit is contained in:
parent
6839870055
commit
b63fc999e1
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user