GithubHelp home page GithubHelp logo

Comments (8)

edwinRNDR avatar edwinRNDR commented on May 21, 2024

Any idea what your context scaling factor is? I suspect it is fractional (like 1.5 or 2.5)?

from openrndr.

madhead avatar madhead commented on May 21, 2024

The window.scale property (inside a Program instance) is weird: Vector2(x=1.0, y=1.0026315450668335).

from openrndr.

madhead avatar madhead commented on May 21, 2024

This is what the debugger says:

val wcsx = FloatArray(1)  // wcsx[0] = 1.0
val wcsy = FloatArray(1)  // wcsy[0] = 1.0026315450668335

glfwGetWindowContentScale(window, wcsx, wcsy) // ← this line sets values above

from openrndr.

edwinRNDR avatar edwinRNDR commented on May 21, 2024

I suspect this is caused by something that is out of OPENRNDR's reach. You may want to test against some of the glfw examples in C and see if glfwGetWindowContentScale reports the same scale factors so we can report this as either a glfw or lwjgl bug.

I am leaving the issue open for reference but I cannot resolve it as I don't have the means to reproduce the reported issue.

from openrndr.

clankill3r avatar clankill3r commented on May 21, 2024

Is FunctionDrawer from openrndr? I dont' have it.

from openrndr.

edwinRNDR avatar edwinRNDR commented on May 21, 2024

Is FunctionDrawer from openrndr? I dont' have it.

Hi @clankill3r, FunctionDrawer was removed from the library as there's now an extend overload that takes a function directly.

from openrndr.

edwinRNDR avatar edwinRNDR commented on May 21, 2024

Closing this as it is getting old

from openrndr.

edwinRNDR avatar edwinRNDR commented on May 21, 2024

Ran into this problem again. It happens when the system dpi is set to something that is not a multiple of 96. It can be fixed by running xrandr --dpi 96, although I am not sure if this is the right solution.

from openrndr.

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.