Browse Source

increase the digit font height

Lulu 1 năm trước cách đây
mục cha
commit
c05ab64bf3
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  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;