freja icon indicating copy to clipboard operation
freja copied to clipboard

jiggly text on virtualbox + xubuntu

Open saikyun opened this issue 4 years ago • 14 comments

Text jiggles when typing.

virtualbox 6.1.24-1 based on ubuntu 20.04.2 LTS

saikyun avatar Jul 28 '21 08:07 saikyun

This happens when the initial size of freja is bigger than the maximal size of the window. This causes some internal scaling to become strange.

saikyun avatar Aug 02 '21 13:08 saikyun

Hotfix is to change the call to init-window in freja/main.janet to use lower values than 900 / 700. @sogaiu

saikyun avatar Aug 02 '21 13:08 saikyun

Need to test with regular raylib to see if it's a problem with raylib or with my way of setting things up.

saikyun avatar Aug 02 '21 13:08 saikyun

Tried your hotfix with 800 / 600 and it worked :)

sogaiu avatar Aug 03 '21 03:08 sogaiu

Nice! :)

Den tis 3 aug. 2021 05:45sogaiu @.***> skrev:

Tried your hotfix with 800 / 600 and it worked :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/saikyun/freja/issues/21#issuecomment-891496894, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAS46Z3HIY6NDJJKYE2NA4LT25Q6HANCNFSM5BD374PA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

saikyun avatar Aug 03 '21 06:08 saikyun

An additional data point. Something similar appears to happen with 8b8935098b86c6389a9861c0751339b52bee0196 on a host machine (not VM) with Manjaro Linux. I noticed while using the mouse wheel to scroll.

The hotfix appears to work.

sogaiu avatar Sep 01 '21 07:09 sogaiu

@sogaiu could you try this on latest Freja? Some time ago I did some modifications that removed jiggling in certain situations. Maybe this case has been solved as well?

saikyun avatar Oct 28 '21 07:10 saikyun

@saikyun I tried a65e03b522af4c41afe659d6bb4cd89ba4c27089 in a VM and I don't notice any jiggling :)

sogaiu avatar Oct 28 '21 08:10 sogaiu

Cool! Even with the initial size being too big?

Den tors 28 okt. 2021 10:11sogaiu @.***> skrev:

@saikyun https://github.com/saikyun I tried a65e03b https://github.com/saikyun/freja/commit/a65e03b522af4c41afe659d6bb4cd89ba4c27089 in a VM and I don't notice any jiggling :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/saikyun/freja/issues/21#issuecomment-953604551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAS46Z3YWK37DRUMJMTWWEDUJEARTANCNFSM5BD374PA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

saikyun avatar Oct 28 '21 09:10 saikyun

Not sure I follow.

I think originally, the issue occured here with the size 800x600 (which is still the default IIUC). I think I tested in the same VM with no changes to resolution.

If there is something specific I can do to test for "initial size being too big", please let me know. I don't know what specifically to do though.

sogaiu avatar Oct 28 '21 11:10 sogaiu

Okay, thanks, then it should be fine. :) I didn't know if you tested with the default.

Den tors 28 okt. 2021 13:11sogaiu @.***> skrev:

Not sure I follow.

I think originally, the issue occured here with the size 800x600 (which is still the default IIUC https://github.com/saikyun/freja/blob/main/freja/main.janet#L270). I think I tested in the same VM with no changes to resolution.

If there is something specific I can do to test for "initial size being too big", please let me know. I don't know what specifically to do though.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/saikyun/freja/issues/21#issuecomment-953744588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAS46Z5OYNEY72WXRHF4OEDUJEVWVANCNFSM5BD374PA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

saikyun avatar Oct 28 '21 12:10 saikyun

Sorry if that was unclear -- I tried to convey that by mentioning the commit I tried.

Now that I think of it though, would the content of init.janet be able to influence the outcome? I'm fairly certain I don't have one in the VM, but I can check.

sogaiu avatar Oct 28 '21 22:10 sogaiu

It could, but I don't think you've added anything that affects the rendering in that way. :)

Den fre 29 okt. 2021 00:02sogaiu @.***> skrev:

Sorry if that was unclear -- I tried to convey that by mentioning the commit I tried.

Now that I think of it though, would the content of init.janet be able to influence the outcome? I'm fairly certain I don't have one in the VM, but I can check.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/saikyun/freja/issues/21#issuecomment-954256624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAS46Z7UUK3BWKJQJ3TPIHTUJHB55ANCNFSM5BD374PA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

saikyun avatar Oct 29 '21 07:10 saikyun

Ok, thanks.

FWIW, I checked the VM and I don't see an init.janet.

sogaiu avatar Oct 29 '21 08:10 sogaiu