Giter Club home page Giter Club logo

Comments (4)

kitao avatar kitao commented on May 8, 2024 1

Thank you!
I confirmed the this bug happen.
I'll fix it.

from pyxel.

kitao avatar kitao commented on May 8, 2024 1

This bug is caused by the same reason as #26
As explained in #26 ,unfortunately it it difficult fix this bug in the current implementation.
So please treat this as a specification of Pyxel for now.
I'll add the limitation of window size to the READMEs.

from pyxel.

kitao avatar kitao commented on May 8, 2024

@carlsmith
Sorry, let me confirm the situation again.

Pyxel's application window is resizable and when the window size is changed, its rendering area is also changed to the largest pixel perfect scaled size.
For example, if the application initialized as 100x100 and the window size is 300x250, pyxel changed the scale to 2 automatically, and as a result, rendering area size will be 200x200.
(Actually, I also forgot about this specification, sorry!)

Normally, when the application is initialized, first, Pyxel try to make the window expanded 4 times and if its size is larger than OS's window size limitation, change the window size to the allowed maximum size. After that, the rendering area will be changed automatically as I wrote.

On the other hand, regarding cls behavior, I don't know what happens for now.

So could you try set the scale option and check what happen again?
like this:
pyxel.init(100, 256, scale=3)

Thank you!

from pyxel.

carlsmith avatar carlsmith commented on May 8, 2024

I'll try that later today. Thanks for taking the time to look into it, and explaining the situation.

from pyxel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.