From 47f11a7423cb2f064da90294299d06e943848827 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 25 Oct 2024 09:22:46 +0900 Subject: [PATCH] ebiten: bug fix: DefaultDrawFinalScreen should take FinalScreen Updates #3139 --- gameforui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameforui.go b/gameforui.go index 220b73895..b698c0a5d 100644 --- a/gameforui.go +++ b/gameforui.go @@ -142,7 +142,7 @@ var ( // // You can use DefaultDrawFinalScreen when you need the default implementation of [FinalScreenDrawer.DrawFinalScreen] // 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() { s, err := newShader(builtinshader.ScreenShaderSource, "screen") if err != nil {