MercuryWorkshop / anuraOS

A web "OS" and development environment with full linux emulation
https://anura.pro
GNU Affero General Public License v3.0
220 stars 282 forks source link

x86 apps are scaled incorrectly #198

Open WINRARisyou opened 3 days ago

WINRARisyou commented 3 days ago

For some reason, x86 apps don't use up all the window space, and instead only a portion of it. If an app opens a new window and the old window goes out of focus, the old window becomes scaled properly until it is focused again. The cursor is also offset and moving the real cursor to the edge of the window moves the x86 cursor to the edge of the offset x86 window, and sometimes the window needs to be resized to get the x86 cursor working at all. This does not happen on my Chromebook. It happens on both anuraOS v1.2.1 and v2.0. This is what every x86 window looks like: x86-is-glitched The reason there is no second window in this picture is because it crashed as I was taking the screenshot, but it opened a window right before it crashed, fixing the main window x86-with-new-window

Device specs Lenovo ThinkCentre M700 Tiny with 16 GB of RAM and an Intel Core i3

ProgrammerIn-wonderland commented 3 days ago

Wow you're trying to run Minecraft in v86? That won't run well! (Or at all?)

This is a sort of known issue and mostly exists because of how we handle x86 windows, it's a portion of the "x86 emulators screen" being shown as an anura window, and our refresh interval is 5s, and it leaks on every new window opened or closed. Realistically we need to rewrite the entire x86 GUI parts because it's a mess filled with race conditions and other unpleasant surprises

ProgrammerIn-wonderland commented 3 days ago

Wait I think the specific bug you're describing is the hidpi bug, what's your screen resolution? Are you on a laptop? Do you know your display factor?

WINRARisyou commented 3 days ago

It's a Lenovo ThinkCentre M700 Tiny hooked up to a Sony Bravia KDL-46NX810. It's a 1920x1080 display and the chrome tab is at the default zoom level.

ProgrammerIn-wonderland commented 3 days ago

So it's not the hidpi bug

To be honest, I'm not sure how I can fix this, but I'll leave the bug open to address in the (eventual rewrite) anura.x86's display will get.

WINRARisyou commented 3 days ago

Ok. Glad you tried to help tho.