Skip to content

Commit

Permalink
internal/graphicsdriver/playstation5: bug fix: need to adjust image size
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Oct 6, 2024
1 parent a2490cc commit 5bcfdee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/graphicsdriver/playstation5/graphics_playstation5.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func (g *Graphics) SetVertices(vertices []float32, indices []uint32) error {

func (g *Graphics) NewImage(width, height int) (graphicsdriver.Image, error) {
var id C.int
width = graphics.InternalImageSize(width)
height = graphics.InternalImageSize(height)
if err := C.ebitengine_NewImage(&id, C.int(width), C.int(height)); !C.ebitengine_IsErrorNil(&err) {
return nil, newPlaystation5Error("(*playstation5.Graphics).NewImage", err)
}
Expand Down

0 comments on commit 5bcfdee

Please sign in to comment.