mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
Bug fix: comment
This commit is contained in:
parent
efe7b62745
commit
5ff2b8697f
4
image.go
4
image.go
@ -108,12 +108,12 @@ func (i *Image) DrawLines(lines Lines) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawRect draws a rectangle.
|
// FillRect draws a filled rectangle.
|
||||||
func (i *Image) FillRect(x, y, width, height int, clr color.Color) error {
|
func (i *Image) FillRect(x, y, width, height int, clr color.Color) error {
|
||||||
return i.FillRects(&rect{x, y, width, height, clr})
|
return i.FillRects(&rect{x, y, width, height, clr})
|
||||||
}
|
}
|
||||||
|
|
||||||
// DrawRects draws rectangles on the image.
|
// FillRects draws filled rectangles on the image.
|
||||||
func (i *Image) FillRects(rects Rects) (err error) {
|
func (i *Image) FillRects(rects Rects) (err error) {
|
||||||
ui.Use(func(c *opengl.Context) {
|
ui.Use(func(c *opengl.Context) {
|
||||||
err = i.framebuffer.FillRects(c, rects)
|
err = i.framebuffer.FillRects(c, rects)
|
||||||
|
Loading…
Reference in New Issue
Block a user