mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-10 01:43:40 +00:00
image: fix interface
This commit is contained in:
@@ -72,7 +72,8 @@ func drawPng(display *ili9341.Device) error {
|
||||
}
|
||||
})
|
||||
|
||||
return png.Decode(p)
|
||||
_, err := png.Decode(p)
|
||||
return err
|
||||
}
|
||||
|
||||
func drawJpeg(display *ili9341.Device) error {
|
||||
@@ -84,7 +85,8 @@ func drawJpeg(display *ili9341.Device) error {
|
||||
}
|
||||
})
|
||||
|
||||
return jpeg.Decode(p)
|
||||
_, err := jpeg.Decode(p)
|
||||
return err
|
||||
}
|
||||
|
||||
func errorMessage(err error) {
|
||||
|
||||
Reference in New Issue
Block a user