mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
Fix misspellings
This commit is contained in:
parent
de915a1736
commit
2003b7d292
@ -37,7 +37,7 @@ import (
|
|||||||
var (
|
var (
|
||||||
glContextCh = make(chan gl.Context)
|
glContextCh = make(chan gl.Context)
|
||||||
|
|
||||||
// renderCh recieves when updating starts.
|
// renderCh receives when updating starts.
|
||||||
renderCh = make(chan struct{})
|
renderCh = make(chan struct{})
|
||||||
|
|
||||||
// renderEndCh receives when updating finishes.
|
// renderEndCh receives when updating finishes.
|
||||||
|
@ -164,7 +164,7 @@ func (m *mipmap) mipmapLevel(geom *GeoM, width, height int, filter driver.Filter
|
|||||||
// It looks like 128 is the enlargement factor that causes edge missings to pass the test TestImageStretch.
|
// It looks like 128 is the enlargement factor that causes edge missings to pass the test TestImageStretch.
|
||||||
const tooBigScale = 128
|
const tooBigScale = 128
|
||||||
if sx, sy := geomScaleSize(geom); sx >= tooBigScale || sy >= tooBigScale {
|
if sx, sy := geomScaleSize(geom); sx >= tooBigScale || sy >= tooBigScale {
|
||||||
// If the filter is not nearest, the target needs to be rendered with gradiation. Don't use mipmaps.
|
// If the filter is not nearest, the target needs to be rendered with graduation. Don't use mipmaps.
|
||||||
if filter != driver.FilterNearest {
|
if filter != driver.FilterNearest {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user