Comments (9)
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.
Hurray! Looks like 9441dbe actually solves the problem. Thank you!
from bracket-lib.
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.
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.
I've merged in some changes that resolved the issue in a VM running Ubuntu Linux.
from bracket-lib.
Unfortunately, I still have the artifacts. What additional information may be useful to you?
from bracket-lib.
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.
Tested on i3wm and dwm: both are for X11 and both have the problem.
from bracket-lib.
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)
- Are we production yet?
- Fractal noise scaling
- Zero octave noise
- rltk not building for wasm
- no_std support?
- BTerm set() with float data point HOT 1
- Hello Minimal Terminal crashes with Wayland error HOT 1
- Noise subtract with overflow
- FastNoise::seeded() creates 0 noise
- Add Support for More Font Sizes
- `hello_minimal` exampe crashes with `cross_term` backend enabled (vscode integrated terminal)
- `hello_terminal` example renders incorrectly with `cross_term` enabled only in WSL2 environment
- BLACK must be defined only once in the value namespace of this module
- book unavailable HOT 4
- Possible issue with drawing cerrain wall glyph combinations HOT 4
- Error sending request: Resource temporarily unavailable (exit code 11) HOT 1
- Request: Move terminal init and update logic out of main_loop
- Request: disable RPG-style dice string parsing thingy for `bracket-noise`
- egl: failed to create dri2 screen HOT 4
- Input on wasm repeats inputs on losing focus
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bracket-lib.