mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 07:24:58 -04:00
fixed fontSize in flow_gl in hdpi displays
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user