mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
docs: Draw function's signature was wrong
This commit is contained in:
parent
5300b0f498
commit
de786035c7
4
run.go
4
run.go
@ -30,7 +30,7 @@ type Game interface {
|
||||
//
|
||||
// The Draw function's definition is:
|
||||
//
|
||||
// Draw(screen *Image) error
|
||||
// Draw(screen *Image)
|
||||
//
|
||||
// The give argument represents a screen image. Whether the updated content is used or not
|
||||
// depends on the existence of Draw definition.
|
||||
@ -48,7 +48,7 @@ type Game interface {
|
||||
//
|
||||
// Draw is an optional function for backward compatibility.
|
||||
//
|
||||
// Draw(screen *Image) error
|
||||
// Draw(screen *Image)
|
||||
|
||||
// Layout accepts a native outside size in device-independent pixels and returns the game's logical screen
|
||||
// size.
|
||||
|
Loading…
Reference in New Issue
Block a user