mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
graphics: Remove imageImpl.filter
This commit is contained in:
parent
b8b7e97511
commit
99b7e85d3d
@ -31,7 +31,6 @@ type imageImpl struct {
|
|||||||
disposed bool
|
disposed bool
|
||||||
width int
|
width int
|
||||||
height int
|
height int
|
||||||
filter Filter
|
|
||||||
restorable *restorable.Image
|
restorable *restorable.Image
|
||||||
volatile bool
|
volatile bool
|
||||||
screen bool
|
screen bool
|
||||||
@ -46,7 +45,6 @@ func newImageImpl(width, height int, filter Filter, volatile bool) (*imageImpl,
|
|||||||
i := &imageImpl{
|
i := &imageImpl{
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
filter: filter,
|
|
||||||
restorable: img,
|
restorable: img,
|
||||||
volatile: volatile,
|
volatile: volatile,
|
||||||
}
|
}
|
||||||
@ -78,7 +76,6 @@ func newImageImplFromImage(source image.Image, filter Filter) (*imageImpl, error
|
|||||||
i := &imageImpl{
|
i := &imageImpl{
|
||||||
width: w,
|
width: w,
|
||||||
height: h,
|
height: h,
|
||||||
filter: filter,
|
|
||||||
restorable: img,
|
restorable: img,
|
||||||
}
|
}
|
||||||
i.restorable.ReplacePixels(p)
|
i.restorable.ReplacePixels(p)
|
||||||
|
Loading…
Reference in New Issue
Block a user