Fixing our font rendering issues by rendering into 32bits bitmap.
authorsl
Wed, 28 May 2014 19:31:55 +0200
changeset 12f0c61338a2e8
parent 11 b935de604982
child 13 40da62e57d85
Fixing our font rendering issues by rendering into 32bits bitmap.
MiniDisplay/minidisplay.cpp
     1.1 --- a/MiniDisplay/minidisplay.cpp	Wed May 28 18:44:15 2014 +0200
     1.2 +++ b/MiniDisplay/minidisplay.cpp	Wed May 28 19:31:55 2014 +0200
     1.3 @@ -125,7 +125,8 @@
     1.4      int w=metrics.width(strDemo);
     1.5      int h=metrics.height();
     1.6      QSize size(w,h);
     1.7 -    QImage image(size,QImage::Format_Mono);
     1.8 +    //Rendering in mono is quite broken we need RGB32
     1.9 +    QImage image(size,QImage::Format_RGB32);
    1.10      image.fill(0xFFFFFFFF);
    1.11      //Draw some text into our image
    1.12      {