oferkv / phototonic

Image Viewer and organizer
GNU General Public License v3.0
159 stars 43 forks source link

wayland integer scaling issue #270

Open rezad1393 opened 2 years ago

rezad1393 commented 2 years ago

I use this app on kde plasma dektop runnning as wayland. this app runs as wayland client. I set my desktop to 200% scale (I use a whole integer scale because wayland has issues with fractional scaling right now), and I open a 1080p picture on my 1080p physical screen, in both this app and gwenview kde app. then I tell both app to show the image in natural zoom (actual image size, so 1-to-1 image pixel to screen pixel) gwenview correctly fills the screen with complete image and exactly just that image. but this app would act as if my screen size has been cut in half and shows one quarter of image.

I think the gwenview behavior is the correct one. because scaling should but tell the app to scale UI element not the image bitmap. if I watch a movie or view a picture and use desktop scaling, the image or video should not get scaled.

am I missing something? I see the same bug in qview app too and it seems that it is not a OS or desktop issue because on that app it happens on windows too. https://github.com/jurplel/qView/issues/374

so maybe you have some library or something in common? I cant test this app on windows as I dont have windows, but maybe test there too with desktop scaling.