|
@@ -205,7 +205,9 @@ var
|
|
bmpCursorWidth, i: integer;
|
|
bmpCursorWidth, i: integer;
|
|
bmpCursorOpacity: byte;
|
|
bmpCursorOpacity: byte;
|
|
begin
|
|
begin
|
|
- FBitmapScale := Bitmap.Width / vsColorView.Width;
|
|
|
|
|
|
+ if vsColorView.Width <> 0 then
|
|
|
|
+ FBitmapScale := Bitmap.Width / vsColorView.Width
|
|
|
|
+ else FBitmapScale := 1;
|
|
Bitmap.FontHeight := round(FTitleFontHeight * FBitmapScale);
|
|
Bitmap.FontHeight := round(FTitleFontHeight * FBitmapScale);
|
|
Bitmap.FontAntialias := True;
|
|
Bitmap.FontAntialias := True;
|
|
textBoundRight := Bitmap.Width / FBitmapScale;
|
|
textBoundRight := Bitmap.Width / FBitmapScale;
|