fixed fontSize in flow_gl in hdpi displays

This commit is contained in:
Luis Ángel San Martín
2015-05-25 19:48:28 +02:00
parent d2de64d51a
commit 675adb526c
3 changed files with 6 additions and 5 deletions

View File

@ -325,8 +325,8 @@ void YACReaderFlowGL::paintGL()
void YACReaderFlowGL::resizeGL(int width, int height)
{
fontSize = (width + height) * 0.010;
float pixelRatio = devicePixelRatio();
fontSize = (width + height) * 0.010 * pixelRatio;
if(fontSize < 10)
fontSize = 10;