hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.34k stars 2.18k forks source link

Display deviation from mouse touch position #18685

Open popjdh opened 9 months ago

popjdh commented 9 months ago

Game or games this happens in

None

What area of the game / PPSSPP

My environment is Linux 6.6.10-arch1-1 and KDE 5.27.10. My KDE`s is global scaling set to 125%. When using PPSSPPSDL, It works Well. image But when using PPSSPPQt, It seems to have a deviation between the touch area and the display area. image The display area plus the black part represents the actual touch area. In full screen mode, the display part occupies the entire screen, which makes some areas unable to be touched (located outside the screen)

What should happen

It should not have a mismatch between the touch area and the display area.

Logs

None

Platform

Linux / BSD

Mobile device model or graphics card (GPU)

NVIDIA GeForce GTX 1660 TI

PPSSPP version affected

1.16.6

Last working version

None

Graphics backend (3D API)

OpenGL / GLES

Checklist

popjdh commented 9 months ago

Supplement: I tried setting environment variables such as QT_AUTO_SCREEN_SCALE_FACTOR=0, QT_SCREEN_SCALE_FACTORS=1, and QT_SCALE_FACTOR=1. In the end, QT_SCREEN_SCALE_FACTORS=1 successfully solved this problem, while the other two were ineffective.

❯ QT_SCREEN_SCALE_FACTORS="1" PPSSPPQt

Result: image

hrydgard commented 9 months ago

The Qt build is not really actively maintained due to a lack of time, it was contributed by someone who didn't end up helping maintain it. Still, I do try to fix obviously bad stuff like this when possible, so tagging for 1.18.

hrydgard commented 1 month ago

Can't reproduce this in Qt on Ubuntu using 125% or 150% scaling. Postponing.