浏览代码

increase the digit font height

Lulu 1 年之前
父节点
当前提交
c05ab64bf3
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      lazpaint/dialog/uchoosecolorinterface.pas

+ 2 - 4
lazpaint/dialog/uchoosecolorinterface.pas

@@ -307,10 +307,8 @@ begin
         begin
           if GetLightness(c)/65535 > 0.5 then
             cDigit := BGRABlack else cDigit := BGRAWhite;
-          Bitmap.FontHeight := Round(Height*2/3);
-          Bitmap.TextOut(CenterPoint.x,
-                         CenterPoint.y-Bitmap.TextSize(s).cy div 2,
-                         s, cDigit, taCenter);
+          Bitmap.FontFullHeight := Height;
+          Bitmap.TextOut(CenterPoint.x, CenterPoint.y-Height div 2, s, cDigit, taCenter);
         end;
       end;
     end;