From 83ead375a4d9321cc6e09a77d9ea6e63ddc022a7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 5 Oct 2020 02:00:50 +0900 Subject: [PATCH] ebiten: Update comments --- image.go | 5 +---- image_test.go | 3 --- input.go | 3 --- run.go | 12 ++---------- window.go | 4 +--- 5 files changed, 4 insertions(+), 23 deletions(-) diff --git a/image.go b/image.go index 6c916b796..098a6ac7c 100644 --- a/image.go +++ b/image.go @@ -122,9 +122,6 @@ type DrawImageOptions struct { // Filter is a type of texture filter. // The default (zero) value is FilterNearest. - // - // Filter can also be specified at NewImage* functions, but - // specifying filter at DrawImageOptions is recommended (as of 1.7.0). Filter Filter } @@ -635,7 +632,7 @@ func (i *Image) ColorModel() color.Model { // Note that an important logic should not rely on values returned by At, since // the returned values can include very slight differences between some machines. // -// At can't be called outside the main loop (ebiten.Run's updating function) starts (as of version 1.4.0). +// At can't be called outside the main loop (ebiten.Run's updating function) starts. func (i *Image) At(x, y int) color.Color { if i.isDisposed() { return color.RGBA{} diff --git a/image_test.go b/image_test.go index 8ab0ad3d2..1d026476d 100644 --- a/image_test.go +++ b/image_test.go @@ -816,9 +816,6 @@ func TestImageOutsideUpperLeft(t *testing.T) { dst1.DrawImage(src.SubImage(image.Rect(-4, -4, 8, 8)).(*Image), op) op = &DrawImageOptions{} - // The outside part of the source rect is just ignored. - // This behavior was changed as of 1.9.0-alpha. - // op.GeoM.Translate(4, 4) op.GeoM.Rotate(math.Pi / 4) dst2.DrawImage(src, op) diff --git a/input.go b/input.go index 291e5bfda..a1e86c912 100644 --- a/input.go +++ b/input.go @@ -99,9 +99,6 @@ func Wheel() (xoff, yoff float64) { // use inpututil.IsMouseButtonJustPressed // // IsMouseButtonPressed is concurrent-safe. -// -// Note that touch events not longer affect IsMouseButtonPressed's result as of 1.4.0-alpha. -// Use Touches instead. func IsMouseButtonPressed(mouseButton MouseButton) bool { return uiDriver().Input().IsMouseButtonPressed(driver.MouseButton(mouseButton)) } diff --git a/run.go b/run.go index ceeaca527..6aa2c93e7 100644 --- a/run.go +++ b/run.go @@ -244,11 +244,7 @@ func SetCursorMode(mode CursorModeType) { // IsFullscreen reports whether the current mode is fullscreen or not. // -// IsFullscreen always returns false on browsers. -// IsFullscreen works as this as of 1.10.0-alpha. -// Before that, IsFullscreen reported whether the current mode is fullscreen or not. -// -// IsFullscreen always returns false on mobiles. +// IsFullscreen always returns false on browsers or mobiles. // // IsFullscreen is concurrent-safe. func IsFullscreen() bool { @@ -263,11 +259,7 @@ func IsFullscreen() bool { // On desktops, Ebiten uses 'windowed' fullscreen mode, which doesn't change // your monitor's resolution. // -// SetFullscreen does nothing on browsers. -// SetFullscreen works as this as of 1.10.0-alpha. -// Before that, SetFullscreen affected the fullscreen mode. -// -// SetFullscreen does nothing on mobiles. +// SetFullscreen does nothing on browsers or mobiles. // // SetFullscreen is concurrent-safe. func SetFullscreen(fullscreen bool) { diff --git a/window.go b/window.go index cdf119143..5ede13cc5 100644 --- a/window.go +++ b/window.go @@ -74,9 +74,7 @@ func SetWindowResizable(resizable bool) { // SetWindowTitle sets the title of the window. // -// SetWindowTitle updated the title on browsers, but now does nothing on browsers as of 1.11.0-alpha. -// -// SetWindowTitle does nothing on mobiles. +// SetWindowTitle does nothing on browsers or mobiles. // // SetWindowTitle is concurrent-safe. func SetWindowTitle(title string) {