Aerilius / eog_panorama

Panorama viewer plugin for the 'Eye of Gnome' image viewer
GNU General Public License v3.0
32 stars 1 forks source link

Panoramas blurry on hidpi screen #1

Closed Aerilius closed 7 years ago

Aerilius commented 7 years ago

On a screen with scaling factor 2.0, panorama images are rendered blurry (like non-hidpi). By contrast, eog displays images sharper, as well as PhotoSphereViewer in the browser does.

Aerilius commented 7 years ago

HiDPI support in three.js is done by renderer.setPixelRatio(PhotoSphereViewer.SYSTEM.pixelRatio). The value is obtained from window.devicePixelRatio.

In a normal web browser, JavaScript window.devicePixelRatio gives 2.0. However in the WebKit2.WebView it incorrectly returns 1.0, although the webview otherwise renders everything at scale 2.