Giter VIP home page Giter VIP logo

Comments (9)

thebracket avatar thebracket commented on May 18, 2024 1

The good news is that I can now replicate this issue by resizing the viewport when the window changes and deliberately picking inappropriate sizes. It'll take me a bit to get an actual fix in place, but I've now got a good handle on what's going on. :-)

from bracket-lib.

vokar avatar vokar commented on May 18, 2024 1

Hurray! Looks like 9441dbe actually solves the problem. Thank you!

from bracket-lib.

thebracket avatar thebracket commented on May 18, 2024

That's an odd one. It looks like a scaling issue. I really need to get a Linux box to test on - most of the reported issues so far have been on Linux!

If I had to hazard a guess, it's related to the handling on RESIZE events (https://github.com/thebracket/rltk_rs/blob/master/src/platform_specific.rs, around line 145). There's some code that got commented out to assist with a different Linux problem (it calls resize a lot more than you'd expect, when the window decorations are added to the window). The hard part is finding the magical incantation that goes there...

from bracket-lib.

thebracket avatar thebracket commented on May 18, 2024

It definitely relates to resizing the window. I found and fixed a similar problem under wasm, if I didn't resize the canvas. I'm setting up a Linux VM right now (limited time available; moving house) and hope to have this fixed Mon/Tue.

from bracket-lib.

thebracket avatar thebracket commented on May 18, 2024

I've merged in some changes that resolved the issue in a VM running Ubuntu Linux.

from bracket-lib.

vokar avatar vokar commented on May 18, 2024

Unfortunately, I still have the artifacts. What additional information may be useful to you?

from bracket-lib.

thebracket avatar thebracket commented on May 18, 2024

What window manager are you using (I'm assuming on X11)? I've been testing on the default one that Ubuntu installs.

from bracket-lib.

vokar avatar vokar commented on May 18, 2024

Tested on i3wm and dwm: both are for X11 and both have the problem.

from bracket-lib.

thebracket avatar thebracket commented on May 18, 2024

image

Is what I see on dwm (I didn't have i3wm handy). Never used that particular WM before, so it's pretty much on the package defaults. Other than everything being slow in my VM, it looks ok.

I'll do some more digging and see what I can find. I have a suspicion that Glutin (the GL library) is trying to do something "clever" with its DPI handling support, and blowing things up as a result.

from bracket-lib.

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.