1
1
/*
2
2
MIT License
3
- Copyright (C) 2022 - 2023 DUONG DIEU PHAP
3
+ Copyright (C) 2022 - 2024 DUONG DIEU PHAP
4
4
Project & license info: https://github.com/d2phap/DXControl
5
5
*/
6
6
using D2Phap ;
@@ -61,7 +61,7 @@ protected override void OnRender(IGraphics g)
61
61
{
62
62
_bitmapD2d . Object . GetSize ( out var size ) ;
63
63
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 ) ,
65
65
srcRect : new RectangleF ( 0 , 0 , size . width , size . height ) ,
66
66
interpolation : InterpolationMode . NearestNeighbor
67
67
) ;
@@ -70,7 +70,7 @@ protected override void OnRender(IGraphics g)
70
70
else if ( ! UseHardwareAcceleration && Bitmap != null )
71
71
{
72
72
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 ) ,
74
74
srcRect : new RectangleF ( 0 , 0 , Bitmap . Width , Bitmap . Height ) ,
75
75
interpolation : InterpolationMode . NearestNeighbor
76
76
) ;
@@ -115,7 +115,7 @@ protected override void OnRender(IGraphics g)
115
115
g . DrawRectangle ( new RectangleF ( rectText . Location , textSize ) , 0 , Color . Red ) ;
116
116
117
117
118
- // draw FPD info
118
+ // draw FPS info
119
119
var engine = UseHardwareAcceleration ? "GPU" : "GDI+" ;
120
120
g . DrawText ( $ "FPS: { FPS } - { engine } ", Font . Name , 18 , 0 , 0 , Color . Purple , DeviceDpi ) ;
121
121
0 commit comments