소스 검색

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;