Tiles in canvas does not scale properly

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Larsii30
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

Tiles in canvas does not scale properly

Post by Larsii30 »

Hey everyone,
Tshkn.png
Tshkn.png (59.46 KiB) Viewed 117 times
As you can see the sign left ( outside the canvas ) is much sharper then the sign right ( inside the canvas ).
I've tried to reset the defaultImageFilter without effect.
(edit) the images got the same size ( 32 x 32 ) and the "love.graphics.setDefaultImageFilter(...)" was set as one of the
first functions in love.load(). The problem get visible after scaling the screen with love.graphics.scale.
Canvas related problem ?

greets
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Tiles in canvas does not scale properly

Post by Kadoba »

It's definitely a filter problem. I'm not sure if the default filter applies to canvases. Try setting the filter manually with Canvas:setFilter.
User avatar
Larsii30
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

Re: Tiles in canvas does not scale properly

Post by Larsii30 »

Thanks that fixed it. ( I forgot about this function .. sorry ! )
Wouldn't it be better if the canvas get the DefaultImageFilter automatically passed from the setDefaultImageFilter-function?
Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests