Giter Club home page Giter Club logo

Comments (5)

flyover avatar flyover commented on August 12, 2024

50df0be

from imgui-js.

DoctorGester avatar DoctorGester commented on August 12, 2024

@flyover it's not blurry anymore, but it's small :D
I'm unable to test right now but I think https://github.com/flyover/imgui-js/blob/master/example/imgui_impl.ts#L264-L265 those should use .scrollWidth and .scrollHeight because those supposed to be actual display size (both gl.drawingBufferWidth and gl.canvas.width represent the same thing - internal framebuffer size)

from imgui-js.

flyover avatar flyover commented on August 12, 2024

aff0e3b

I also had to add a viewport meta tag to get it to scale correctly.

from imgui-js.

DoctorGester avatar DoctorGester commented on August 12, 2024

Nice! You would need to rollback your older code which modifies mouse position though because right now it's incorrect.

I'm working on a webassembly version of imgui right now and couldn't figure out a bug with the glViewport call on retina displays (turns out that call wasn't needed), so now I've figured out thanks to your code!

from imgui-js.

flyover avatar flyover commented on August 12, 2024

6fba142

from imgui-js.

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.