소스 검색

Update unit1.pas

Leandro Diaz 1 년 전
부모
커밋
a89252d9df
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      test/test_bgravirtualscreen_blur/unit1.pas

+ 2 - 2
test/test_bgravirtualscreen_blur/unit1.pas

@@ -58,7 +58,7 @@ begin
   begin
     Bitmap.StretchPutImageProportionally(Rect(-TControl(Sender).Left,-TControl(Sender).Top,Width-TControl(Sender).Left,Height-TControl(Sender).Top), taCenter, tlCenter, backgroundblur, dmSet);
     Bitmap.RoundRectAntialias(0, 0, Bitmap.Width-1, Bitmap.Height-1, 5, 5, BGRA(255, 255, 255, 100), 1, BGRA(255, 255, 255, 10));
-    Bitmap.StretchPutImageProportionally(Rect(-TControl(Sender).Left,-TControl(Sender).Top,Width-TControl(Sender).Left,Height-TControl(Sender).Top), taCenter, tlCenter, backgroundnoise, dmDrawWithTransparency, 2);
+    Bitmap.PutImage(0, 0, backgroundnoise, dmDrawWithTransparency, 2);
   end
   else
   begin
@@ -83,7 +83,7 @@ begin
   background := TBGRABitmap.Create('background.jpg');
   //BGRAReplace(background, background.Resample(Width, Height, rmFineResample));
   backgroundblur := background.FilterBlurRadial(20, 20, rbBox);
-  backgroundnoise := TBGRABitmap.Create(Width, Height, BGRABlack);
+  backgroundnoise := TBGRABitmap.Create(Screen.Width, Screen.Height, BGRABlack);
   NoiseBW(backgroundnoise);
 end;