mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
parent
3f180b2165
commit
7c40b5f922
@ -85,7 +85,7 @@ func float64ToFixed26_6(x float64) fixed.Int26_6 {
|
|||||||
const glyphVariationCount = 4
|
const glyphVariationCount = 4
|
||||||
|
|
||||||
func adjustOffsetGranularity(x fixed.Int26_6) fixed.Int26_6 {
|
func adjustOffsetGranularity(x fixed.Int26_6) fixed.Int26_6 {
|
||||||
return x / (1 << glyphVariationCount) * (1 << glyphVariationCount)
|
return x / ((1 << 6) / glyphVariationCount) * ((1 << 6) / glyphVariationCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Glyph represents one glyph to render.
|
// Glyph represents one glyph to render.
|
||||||
|
Loading…
Reference in New Issue
Block a user