11/*
22MIT License
3- Copyright (C) 2022 - 2023 DUONG DIEU PHAP
3+ Copyright (C) 2022 - 2024 DUONG DIEU PHAP
44Project & license info: https://github.com/d2phap/DXControl
55*/
66using D2Phap ;
@@ -61,7 +61,7 @@ protected override void OnRender(IGraphics g)
6161 {
6262 _bitmapD2d . Object . GetSize ( out var size ) ;
6363 g . DrawBitmap ( _bitmapD2d ,
64- destRect : new RectangleF ( 150 , 150 , size . width * 5 , size . height * 5 ) ,
64+ destRect : new RectangleF ( 150 , 150 , size . width * 3 , size . height * 3 ) ,
6565 srcRect : new RectangleF ( 0 , 0 , size . width , size . height ) ,
6666 interpolation : InterpolationMode . NearestNeighbor
6767 ) ;
@@ -70,7 +70,7 @@ protected override void OnRender(IGraphics g)
7070 else if ( ! UseHardwareAcceleration && Bitmap != null )
7171 {
7272 g . DrawBitmap ( Bitmap ,
73- destRect : new RectangleF ( 150 , 150 , Bitmap . Width * 5 , Bitmap . Height * 5 ) ,
73+ destRect : new RectangleF ( 150 , 150 , Bitmap . Width * 3 , Bitmap . Height * 3 ) ,
7474 srcRect : new RectangleF ( 0 , 0 , Bitmap . Width , Bitmap . Height ) ,
7575 interpolation : InterpolationMode . NearestNeighbor
7676 ) ;
@@ -115,7 +115,7 @@ protected override void OnRender(IGraphics g)
115115 g . DrawRectangle ( new RectangleF ( rectText . Location , textSize ) , 0 , Color . Red ) ;
116116
117117
118- // draw FPD info
118+ // draw FPS info
119119 var engine = UseHardwareAcceleration ? "GPU" : "GDI+" ;
120120 g . DrawText ( $ "FPS: { FPS } - { engine } ", Font . Name , 18 , 0 , 0 , Color . Purple , DeviceDpi ) ;
121121
0 commit comments