Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The background isn't scaled properly on native targets when 0<zoom<1 #1588

Closed
sruloart opened this issue Aug 21, 2015 · 7 comments
Closed

The background isn't scaled properly on native targets when 0<zoom<1 #1588

sruloart opened this issue Aug 21, 2015 · 7 comments

Comments

@sruloart
Copy link
Contributor

see here: http://haxeflixel.com/forum/?place=msg%2Fhaxeflixel%2FAf21i7o6LWg%2FDDdT02dHEgAJ

Only relevant to FLX_RENDER_TILE and FLX_RENDER_TRIANGLE.

@sruloart sruloart changed the title The background isn't scaled properly on native targets when zoom<1 The background isn't scaled properly on native targets when 0<zoom<1 Aug 21, 2015
@sruloart
Copy link
Contributor Author

Two more related points to add:

  • It doesn't happen on Android (apparently).
  • On html5 the background sometimes disappears completely. Might be related. But the test case above works fine though.

I think that's something to do with OpenFL/Lime (the Hardware doesn't scale the BG sprite properly), but let's keep it open in case this requires a flag / I'm wrong :)

And here are two gifs to better illustrate what's actually going on:

Trying to scale the game up/down when the initial zoom value is smaller than 1
bad scaling background
The black rectangle is actually the background sprite :|

And here what happens when going fullscreen:
bad scaling background - fullscreen

@iam-jim
Copy link

iam-jim commented Sep 4, 2015

It does not happen in mobile target, only happen when window or display size is smaller than game size (defined in Main.hx) And in mobile normally window size is bigger than game size.

@iam-jim
Copy link

iam-jim commented Nov 14, 2015

Bump.

@Beeblerox
Copy link
Member

i think i've fixed it

@Gama11
Copy link
Member

Gama11 commented Apr 16, 2016

See 9754535.

@Gama11 Gama11 closed this as completed Apr 16, 2016
@arthurferrai
Copy link

When will it be available?

@Beeblerox
Copy link
Member

@arthurferrai i don't know, but it's one line fix in FlxCamera, so you can make this change yourself in local copy of the lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants