QuickLayer icon indicating copy to clipboard operation
QuickLayer copied to clipboard

Need add support of retina displays

Open ioannismihailidis opened this issue 10 years ago • 11 comments

same problem in QQuickRenderControl example with qt 5.4 under mac os x 10.10.2. Which Os are you using?

ioannismihailidis avatar Feb 13 '15 12:02 ioannismihailidis

I am on OS X 10.10.2 too. I've checked demo - it works fine for me. What hardware do you have?

RSATom avatar Feb 13 '15 14:02 RSATom

MBP Retina 2012, Nvidia Geforce 650M, Qt5.4 downloaded with online MaintenanceTool. Any idea what might be the issue?

ioannismihailidis avatar Feb 13 '15 14:02 ioannismihailidis

I didn't try it on retina display, and I have only integrated video (Intel hd 4000). Maybe it's related. Do you see anything in debug output?

RSATom avatar Feb 13 '15 14:02 RSATom

Intergrated has the same problem. BUT: Running the app in low (non retina) resolution fixes the problem! Thanks!

ioannismihailidis avatar Feb 13 '15 14:02 ioannismihailidis

It's very interesting and will be very useful to me too. So thank you! :) Could you please share solution if you will find it?

RSATom avatar Feb 13 '15 15:02 RSATom

I will let you know! In the meanwhile I will wait for qt5.5...maybe the problem will be solved :)

ioannismihailidis avatar Feb 13 '15 15:02 ioannismihailidis

I can't wait 5.5 :) So maybe will have to fix it myself. Will write here if will find solution.

RSATom avatar Feb 13 '15 15:02 RSATom

I suggest you check https://bugreports.qt.io/browse/QTBUG-45613 and https://bugreports.qt.io/browse/QTBUG-42114 (the latter is reported fixed, but I'm having this problem, so I cloned it as the former).

I added a significant amount of detail to QTBUG-45613 after capturing the GL calls with a tracing program. The problem seems to be a bad glViewport call (at least) when on the retina display.

jherico avatar Apr 16 '15 07:04 jherico

@jherico, thank you for info. Do you use ~~QmlVlc~~ QuickLayer? I just don't have access to Mac with retina display and thus can't test any solution.

RSATom avatar Apr 16 '15 07:04 RSATom

no, I don't, sorry. I may have to dive into the code myself, but for the time being I'm disabling the HDPI functionality on my retina display.

jherico avatar Apr 16 '15 08:04 jherico

If problem related to glViewport, then it could be fixed just by adding at https://github.com/RSATom/QuickLayer/blob/master/QuickLayer.mm#L115 something like this:

    glViewport(0, 0, fbo->width(), fbo->height());

RSATom avatar Apr 16 '15 09:04 RSATom