ebiten: bug fix: DefaultDrawFinalScreen should take FinalScreen

Updates #3139
This commit is contained in:
Hajime Hoshi 2024-10-25 09:22:46 +09:00
parent f6cd2beacf
commit 47f11a7423

View File

@ -142,7 +142,7 @@ var (
// //
// You can use DefaultDrawFinalScreen when you need the default implementation of [FinalScreenDrawer.DrawFinalScreen] // You can use DefaultDrawFinalScreen when you need the default implementation of [FinalScreenDrawer.DrawFinalScreen]
// in your implementation of [FinalScreenDrawer], for example. // in your implementation of [FinalScreenDrawer], for example.
func DefaultDrawFinalScreen(screen *Image, offscreen *Image, geoM GeoM) { func DefaultDrawFinalScreen(screen FinalScreen, offscreen *Image, geoM GeoM) {
theScreenShaderOnce.Do(func() { theScreenShaderOnce.Do(func() {
s, err := newShader(builtinshader.ScreenShaderSource, "screen") s, err := newShader(builtinshader.ScreenShaderSource, "screen")
if err != nil { if err != nil {