mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:43:19 +00:00
[MSPAINT] Add CachedBufferDIB function and use it
We do caching on buffering paint. This will improve performance a little. CORE-18867
This commit is contained in:
parent
c706222f3f
commit
2f856f6f0d
8 changed files with 73 additions and 9 deletions
|
@ -36,6 +36,7 @@ public:
|
|||
END_MSG_MAP()
|
||||
|
||||
CCanvasWindow();
|
||||
virtual ~CCanvasWindow();
|
||||
|
||||
BOOL m_drawing;
|
||||
|
||||
|
@ -54,6 +55,7 @@ protected:
|
|||
CANVAS_HITTEST m_hitSelection;
|
||||
CANVAS_HITTEST m_whereHit;
|
||||
POINT m_ptOrig; // The origin of drag start
|
||||
HBITMAP m_hbmCached; // The cached buffer bitmap
|
||||
CRect m_rcNew;
|
||||
|
||||
CANVAS_HITTEST CanvasHitTest(POINT pt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue